Changeset 32654 in osm for applications/editors/josm


Ignore:
Timestamp:
2016-07-14T17:40:14+02:00 (8 years ago)
Author:
simon04
Message:

JOSM/wikipedia: fix sorting of entries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wikipedia/src/org/wikipedia/WikipediaApp.java

    r32626 r32654  
    489489        @Override
    490490        public int compareTo(WikipediaEntry o) {
    491             return AlphanumComparator.getInstance().compare(label, o.label);
     491            final int c = AlphanumComparator.getInstance().compare(label, o.label);
     492            return c != 0 ? c : AlphanumComparator.getInstance().compare(wikipediaArticle, o.wikipediaArticle);
    492493        }
    493494    }
Note: See TracChangeset for help on using the changeset viewer.