Index: /applications/editors/josm/plugins/relcontext/src/relcontext/RelContextDialog.java
===================================================================
--- /applications/editors/josm/plugins/relcontext/src/relcontext/RelContextDialog.java	(revision 26124)
+++ /applications/editors/josm/plugins/relcontext/src/relcontext/RelContextDialog.java	(revision 26125)
@@ -306,5 +306,6 @@
         Set<Relation> relations = new TreeSet<Relation>(new Comparator<Relation>() {
             public int compare( Relation r1, Relation r2 ) {
-                return r1.getDisplayName(formatter).compareTo(r2.getDisplayName(formatter));
+                int diff = r1.getDisplayName(formatter).compareTo(r2.getDisplayName(formatter));
+                return diff != 0 ? diff : r1.compareTo(r2);
             }
         });
