Right. For example, to sort a list of numbers:
[5, 14, 1, 2].sort()
[5, 14, 1, 2].sort((a, b) => a - b)