I've got a folder with a dataset which is poorly sorted, and id like to rearrange the information that I'm pulling from it as I'm reading it. Therefore I am wondering, is there an easy way to sort following input:
[['-10' '10']
['-10' '20']
['-15' '10']
['-15' '20']
['-5' '10']
['-5' '20]
['0' '10']
['0' '20']
['10' '10']
['10' '20']
['15' '10']
['15' '20']
['5' '10']
['5' '20]
into following output:
[['-15' '10']
['-15' '20']
['-10' '10']
['-10' '20']
['-5' '10']
['-5' '20]
['0' '10']
['0' '20']
['5' '10']
['5' '20]
['10' '10']
['10' '20']
['15' '10']
['15' '20']]