sort call back function
2018-03-03 本文已影响3人
成江
You need to return 0 if the two elements are equal, a negative number if a should be before b and a positive number if b should be before a.
You need to return 0 if the two elements are equal, a negative number if a should be before b and a positive number if b should be before a.