reorder realm names correctly