function getMax() { function sortUp(el1, el2) { return el2-el1; } arguments.sort(sortUp); return arguments[0]; }