SortedMap/Set for deterministic name generation