When we sort an array we write our function like the following, what does the last_nom mean here?
objs.sort(function(a, b){
return a.last_nom == b.last_nom ? 0 : +(a.last_nom > b.last_nom) || -1;
});
Trying to understand the concept behind but failed to find useful explanation. Thanks for your help in advance!