Sorting the following alphanumerics using myArray.sort():
04-273-0001
04-272-0001
04-272-0003
04-272-0001
04-273-0001
Results in:
04-272-0001
04-272-0001
04-273-0001
04-273-0001
04-272-0003 <--
^
I cannot assume a standard format nor can I assume what alphanumeric
characters might be in the array. How do I sort this accuratly when
these values could contain any alpha numeric character? Is this
possible without creating a crazy hierarchy or characters and exception
rules??
Thanks.
Bob - Cerner Corp.
04-273-0001
04-272-0001
04-272-0003
04-272-0001
04-273-0001
Results in:
04-272-0001
04-272-0001
04-273-0001
04-273-0001
04-272-0003 <--
^
I cannot assume a standard format nor can I assume what alphanumeric
characters might be in the array. How do I sort this accuratly when
these values could contain any alpha numeric character? Is this
possible without creating a crazy hierarchy or characters and exception
rules??
Thanks.
Bob - Cerner Corp.
Comment