You can simplify this by changing it to `this.getShortName().compareTo(route.getShortName())`