Crystal group sort order formula