diff --git a/src/main/java/me/gosimple/nbvcxz/Nbvcxz.java b/src/main/java/me/gosimple/nbvcxz/Nbvcxz.java
index <HASH>..<HASH> 100644
--- a/src/main/java/me/gosimple/nbvcxz/Nbvcxz.java
+++ b/src/main/java/me/gosimple/nbvcxz/Nbvcxz.java
@@ -656,7 +656,7 @@ public class Nbvcxz
                 {
                     return -1;
                 }
-                else
+                else if (match_1.getToken().length() > match_2.getToken().length())
                 {
                     return 1;
                 }
Fix bug in StartIndexComparator violating comparator contracts.

This can yield a IllegalArgumentException: "Comparison method violates its general contract!" when it is used.