Added KeySorter to serialization