Skip to main content
deleted 41 characters in body
Source Link
General Grievance
  • 5.1k
  • 39
  • 40
  • 60

try this :-

//WITH FIRST COLUMN arr = arr.sort(function(a,b) { return a[0] - b[0]; }); //WITH SECOND COLUMN arr = arr.sort(function(a,b) { return a[1] - b[1]; }); 

Use '>' instead of '-' if this doesn't help.

Please let me know if this helped you.

try this :-

//WITH FIRST COLUMN arr = arr.sort(function(a,b) { return a[0] - b[0]; }); //WITH SECOND COLUMN arr = arr.sort(function(a,b) { return a[1] - b[1]; }); 

Use '>' instead of '-' if this doesn't help.

Please let me know if this helped you.

try this :

//WITH FIRST COLUMN arr = arr.sort(function(a,b) { return a[0] - b[0]; }); //WITH SECOND COLUMN arr = arr.sort(function(a,b) { return a[1] - b[1]; }); 

Use '>' instead of '-' if this doesn't help.

Source Link

try this :-

//WITH FIRST COLUMN arr = arr.sort(function(a,b) { return a[0] - b[0]; }); //WITH SECOND COLUMN arr = arr.sort(function(a,b) { return a[1] - b[1]; }); 

Use '>' instead of '-' if this doesn't help.

Please let me know if this helped you.