twbradio 0 Posted January 14, 2005 (edited) Does anyone have an example of two dimensional array sorting using _ArraySort that I could look at . I am not sure that I understand all of the parameters, their defaults, and if there is a value to be used to ignore a parameter. Since I am working in the GUI beta I am posting this here ... my appologies if this seems a bit off topic. Edited January 17, 2005 by twbradio Anyone have a TRS 80 Model III for sale? Share this post Link to post Share on other sites
LazyCoder 0 Posted January 19, 2005 (edited) Func _ArraySort(ByRef $a_Array, $i_Decending = 0, $i_Base = 0, $i_Ubound = 0, $i_Dim = 1, $i_SortIndex = 0)You can simply call _ArraySort($myArray, 0, 0, 0, 2) and have your array sorted in ascending order according to the first 'column' of your 2D array (see it as a matrix).Or call _ArraySort($myArray, 1, 0, 0 ,2) to have it sorted in descending order.Or call _ArraySort($myArray, 0, 0, 0, 2, 3) to have it sorted in ascending order according to the 3rd 'column' of your 2D array.Does it help?If you need more arrays related tools or informations, let's have a look here... Edited January 19, 2005 by LazyCoder A good program computing A into B is mostly one that won't crash in all the other cases... Share this post Link to post Share on other sites
twbradio 0 Posted January 19, 2005 Thank you very much Tom Anyone have a TRS 80 Model III for sale? Share this post Link to post Share on other sites