Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

sort 2d array

function sort_array() {
  
notice_board_data.sort(function (a, b) {
    return Date.parse(a[0].localeCompare(b[0])) || a[1].localeCompare(b[1]);
});

}//end function
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #array
ADD COMMENT
Topic
Name
7+5 =