How does `SortedMap` maintain the order of its keys?
The `SortedMap` interface maintains keys in ascending order based on their natural ordering only.
You're partially correct. `SortedMap` maintains keys in ascending order, but it can also use a custom comparator, not just the natural order.
Can you explain how a custom comparator can change the sorting order in a `SortedMap`?