I have a list of strings that I want sorted. The entries can contain text, numbers or both. First I want them sorted alphabetically and then by the number.
Example of list:
Picture 1
Table 3
Picture 2
Table 1
Picture 4
Picture 3
Table 2
Titel
Notice that one of the entries doesn't contain a number. I want it to be sorted like:
Picture 1
Picture 2
Picture 3
Picture 4
Table 1
Table 2
Table 3
Titel
I have tried splitting the string and sorting them after, but since some of the entries can exist without a number, the split will fail. If I try to sort them as string they will show up like this, if there are more than 10.
Picture 1
Picture 10
Picture 11
...
Picture 2
Picture 21