The commentary here appears to suggest that the comparator is important. SortedMap introduces that comparator and enforces that such a map be carried around.

I acknowledge that going beyond SortedMap in Java can be a bit painful, but at least having SortedMap as the type there seems reasonable to me.

For Scala, easy of course to mix in traits.