Replaced Map<K,V> by SortedMap<K,V>.