This might sound like a silly question, but I've tried to find an answer that works without much success. I've got a list of lists:
for v in sorted(list):
print v
[885.1, 12824]
[885.1, 19843]
[885.11, 1319]
[885.12, 1155]
[885.13, 12844]
[885.14, 33602]
[885.15, 11324]
[885.16, 44040]
[885.2, 119283]
[885.3, 8424]
I've iterated through my list using the sorted function - however that brings up the items in ASCII order as above - can they be sorted as floats in a human readable order? ie:
[885.1, 19843]
[885.2, 119283]
[885.3, 8424]
[885.11, 1319]
[885.12, 1155]
[885.13, 12844]
[885.14, 33602]
[885.15, 11324]
[885.16, 44040]
Do I need to create an index of somekind? Convert my floats to ints? Any help much appreciated.
David.