N, Guruguhan (GEAE, Foreign National, EACOE) <[EMAIL PROTECTED]> wrote: : : I have a multi dimensional array built like this : "$array[$i][$j]". This array has some 50 values and I would : like to sort this in ascending order. Can somebody tell me : how to do this?
How do you want to sort the list? (Alphanumerically, numerically, etc.) Are you asking to sort each sub array or are you asking to sort the values of all the arrays? Do you want to print the sorted list? Or perhaps manipulate the sorted list? Do you want to manipulate the original array based on the sorted list? Are all the values unique? What do we do with duplicate values? What do we do with undefined values? Why is the list in an Array of Arrays (AoA)? Are you maintaining someone else's code and this is what you are stuck with or would a more appropriate data structure do what you want? HTH, Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 PS: In perl an Array of Arrays is the same thing as a Multi-dimensional Array. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>