I have a list of string, which is most likely, but not guaranteed to contain a list of numerics, i.e.,
{"1", "6", "2", "21", "89"}
What is the way to sort the string list so that it will always appear in ascending order?
I can't parse the string to numeric first before doing the sorting simply because the string can contain non numeric characters. And I don't want to go through the list and check-cast each component to numerics and do the sorting. Is there already a library existing out there for this purpose?
In the case where we have mix numerics and non-numeric string item, numeric strings always take precedence over the non numeric ones.