Code style would have `sorted[sorted.length - 1]`