Feature sort fix

The local-mode comparator was returning 0 (a long) for equal values when sorting. Java didn't like this.