I have a set of filenames like this
vorlesung 02.11.15.mp4 vorlesung 04.01.16.mp4 vorlesung 07.12.15.mp4 vorlesung 09.11.15.mp4 vorlesung 09.12.15.mp4 ...
The last part of the file name is a date in european format. Now I attempt to sort these according to date with
awk and stuff seems over the top for this). From this answer I concluded that something like this should work.
ls *.mp4 | sort -k 2.7,2.8 -k 2.4,2.5 -k 2.1,2.3
But in reality, only the key
2.1,2.3 seems to do something. When I apply the others separately, nothing happens. The
numeric-sort flag does not help.
What is the right syntax here?