I have a list with entry like that:
["foo1bar","foo2bar", ..., "foo10bar", "foo11bar", ..., "foo100bar", ...]
foo
is fixed for the set of data (but could vary between the sets), and bar
can vary even in the same set of data.
If I use sort
, the list is badly sorted (1, 10, 100, 2, etc.). How can I sort it correctyly? With a regex extractig the numeral part of the strings?