Retain sort order if object is an instance of SortedMap