I have atext file and which contains the following:
02.03.04@@
02.04.01@@
02.04.03.02@@
02.06.04.01@@
02.06.04.02@@
02.06.09@@
02.13.01@@
02.13.02@@
1.01@@
1.02@@
1.03@@
1.04@@
1.05@@
1.06@@
1.07@@
1.08@@
1.09@@
1.1@@
2.24@@
4.12@@
I need to sort it .As you see numbers starting with 1, 2 etc are already sorted using sorted().but numbers like '02.04.03.02@@'are sorted seperately But logically it should be after 1. How to do this in Python ? do i split at '.' and then compare individually?