I need to sort an array by his inside first element data . my array looks something like that
arr = [[0,"lol"][6,"yo"][5,"comon"]]
After the sorting I need it to be like that :
[[0,"lol"][5,"comon"][6,"yo"]]
0 , 5 , 6 suppose to order the cells and they data they have is irrelevent. Thanks.