Best way to sort an array
You can add pointers to the elements of the array to a TList, then call TList.Sort with a comparison function, and finally create a new array and copy the values out of the TList in the desired order. However, if you’re using the next version, D2009, there is a new collections library which can sort … Read more