Add const to sort() comparator function.  Caught by gcc but not clang