+ 2

How to sort 2d array in JavaScript

create 2d array and sort in ascending order

22nd Apr 2018, 7:15 AM
vishal sonawane
vishal sonawane - avatar
1 Respuesta
+ 4
dont know how u want people to do this.a 2d array is an array with arrays in it.its elements are not numbers which can sorted numerically or alphabets alphabetically,our sorting is then based on what?
22nd Apr 2018, 8:01 AM
᠌᠌Code X
᠌᠌Code X - avatar