code: public static <T> void reverse(final T array) {
  
          if (ArrayUtils.isArray(array)) {
              int mlength = Array.getLength(array) - 1;
              Object temp = null;
              for (int i = 0, j = mlength; i < mlength; i++, j--) {
                  Object arg0 = Array.get(array, i);
                  Object arg1 = Array.get(array, j);
                  temp = arg0;
                  Array.set(array, i, arg1);
                  Array.set(array, j, temp);
              }
          }
      }
docs: Sort the array in reverse order.
  
  @param array
  object to be handled.