ES6 introduced the rest parameter syntax which you should use instead of the arguments object
for a javascript function. The rest parameter represents an indefinite number
of arguments as a standard array. The arguments object is not an real array
so methods like sort, map, forEach, or pop would not work on the arguments object,
while they do on the rest parameter.
What about this?
🤔? This is because array.sort by default does a lexicographic (alphabetical) sort
so we need to pass in our own sort function.