- public Map<Object, String> getKeyLabelPairs() {
- Map<Object, String> result = new HashMap<Object, String>();
- for (Rank rank : CdmStore.getTermManager().getPreferredTerms(Rank.class)) {
+ @Override
+ public Map<Object, String> getKeyLabelPairs() {
+ Map<Object, String> result = new TreeMap<Object, String>();
+ List<Rank> ranks = CdmStore.getTermManager().getPreferredTerms(Rank.class);
+ for (Rank rank : ranks) {