code: public static <T> T[] sort(T[] self, Comparator<T> comparator) {
          return sort(self, true, comparator);
      }
docs: Sorts the given array into sorted order using the given comparator.
  
  @param self the array to be sorted
  @param comparator a Comparator used for the comparison
  @return the sorted array
  @since 1.5.5