Can you please assist / request a code piece to efficiently sort. Cannot find radix sort for vbscript - 2D arrays / able to implement well.
Sample structure of my array is :
resultarray(0,1) = "Name1"
resultarray(1,1) = "Score1"
resultarray(2,1) = "Category1"
resultarray(3,1) = "OtherDetail1"
resultarray(4,1) = "OtherDetail1"
resultarray(5,1) = "OtherDetail1"
resultarray(0,2) = "Name2"
resultarray(1,2) = "Score2"
resultarray(2,2) = "Category2"
resultarray(3,2) = "OtherDetail2"
resultarray(4,2) = "OtherDetail2"
resultarray(5,2) = "OtherDetail2"
resultarray(0,3) = "Name3"
resultarray(1,3) = "Score3"
resultarray(2,3) = "Category3"
resultarray(3,3) = "OtherDetail3"
resultarray(4,3) = "OtherDetail3"
resultarray(5,3) = "OtherDetail3"
The array has to be sorted based on the second column , ie Score. The number of rows would be around a few millions. Score will always be a positive integer (will require two digit decimals in near future). Speed is very important , as this has to be done for a range of few ten-thousands to million numbers , for 30 - 40 different groups.
Presently using Quicksort exactly from :
https://web.archive.org/web/20210125130007/http://www.4guysfromrolla.com/webtech/012799-3.shtml
I have interchanged row <-> column in my implementation , then this works fine. But slow. Is it worth changing the sorting technique from this existing QuickSort.
I intend to use Binary search later for searching around 2000 elements based on the Score match.
Thanks