sublime-sort-numerically
sublime-sort-numerically copied to clipboard
version-sort?
like:
sort -V
-V, --version-sort
Sort version numbers. The input lines are treated as file names in form PREFIX VERSION SUFFIX, where SUFFIX matches the regular expression "(.([A-Za-z~][A-Za-
z0-9~]*)?)*". The files are compared by their prefixes and versions (leading zeros are ignored in version numbers, see example below). If an input string does not match
the pattern, then it is compared using the byte compare function. All string comparisons are performed in C locale, the locale environment setting is ignored.
Example:
$ ls sort* | sort -V
sort-1.022.tgz
sort-1.23.tgz
sort-1.23.1.tgz
This might be helpful? https://stackoverflow.com/questions/12255554/sort-versions-in-python/12255578