Backward compatible sort(xs, 'n')