Answers for "mdn Array.prototype.sort"

-1

javascript sort by id

elems.sort((a, b) => a.id - b.id);
Posted by: Guest on June-17-2020

Browse Popular Code Answers by Language