Changeset 7113 in josm for trunk/src/org


Ignore:
Timestamp:
2014-05-12T21:51:14+02:00 (11 years ago)
Author:
simon04
Message:

fix #9872 - Sort "Member of" list naturally

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java

    r7025 r7113  
    666666            @Override public int compare(Relation o1, Relation o2) {
    667667                int comp = Boolean.valueOf(o1.isDisabledAndHidden()).compareTo(o2.isDisabledAndHidden());
    668                 if (comp == 0) {
    669                     comp = o1.getDisplayName(DefaultNameFormatter.getInstance()).compareTo(o2.getDisplayName(DefaultNameFormatter.getInstance()));
    670                 }
    671                 return comp;
     668                return comp != 0 ? comp : DefaultNameFormatter.getInstance().getRelationComparator().compare(o1, o2);
    672669            }}
    673670                );
Note: See TracChangeset for help on using the changeset viewer.