@NonNull
    public String getSortFilterString() {
        String name = this.name == null ? null : this.name.toString();
        if (isRoute()) {
            //route always on top
            name = LocalizationUtils.getString(R.string.individual_route);
        }
        if (isRouteItem()) {
            name = getRouteItem().getSortFilterString();
        }
        return name == null ? "" : name;
    }
artificial superclass for RouteItem or Track objects
main/src/main/java/cgeo/geocaching/models/MapSelectableItem.java