NumericFileSort.py is a useful python script that reads a regular text file as an argument or as a stdin and then sort all file lines by floating numbers that is exists at the start of each line of file. NumericSortFile ignores all white spaces before floating numbers. Lines without numeric prefix will be absent in output.
Here you can see a usual Linux command output:
We can sort above output with below command very easily:
Copyright© 2021 [email protected], Licensed under GPLv3+