Could someone please help. I would like to sort a multidimensional array. But to sort it out by one key which appears in all array for example.
total=[[serial,'john'],[[serial,'james']]
all the records i have all in arrays they contain a "serial" i would like sort by serial.
I have used
total.sort()
this sorted that names but johns serial is the first and i would like to sort by serial not by name. Please help :S