News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

Quick Sort Typed Arrays

Started by kevin, May 28, 2010, 06:52:19 PM

Previous topic - Next topic

kevin

  Quick Sort Typed Arrays

  This example comes with a little library to help you sort typed 1D arrays into ascending order.   To use the library, you must declare your type as a child of the libraries parent type.  Your array can then to sorted using the lib's sort function, as long as you set the SortOnValue field, this is the field the library uses as the sort key.    Speed wise, the library uses the quick sort algorithm, so even though it's standard PB code, it's still pretty efficient.    




Other Sorting Examples

  Radix Sort Examples
  Better Bubble Sorting
  Bubble Sort Typed (Character) Array



Download

  Attached