`.sort()` will sort the `elements` variable, no need to create a new one.