I'm trying to sort following things
l = ["125.13-ac35", "142.1532-afe354eqd", "125.13-abe319ej", "142.1523-d315aw"]
like this using Python.
l = ["125.13-abe319ej", "125.13-ac35", "142.1523-d315aw", "142.1532-afe354eqd"]
Someone suggested me to use radix sort, but that doesn't work as I wanted. For example, to sort those things, following list
a = [15, 3216, 120, 1, 1000, 253]
should be sorted like this
a = [1, 1000, 120, 15, 253, 3216]
Is there any sorting algorithm to sort like that?