src/main/java/ru/mail/dondokidon/extensions/MultiCompare.java
/**
     * Sort array and name each subgroup of sorted data
     *
     * @param mas Array to sort (will be sorted in result as well)
     * @param <SortingType> The type of objects that will be compared
     * @return Sorted array with named subgroups
     */
Sort array and name each subgroup of sorted data
@param mas Array to sort (will be sorted in result as well)
@param  The type of objects that will be compared
@return Sorted array with named subgroups
Sort array and name each subgroup of sorted data @param mas Array to sort ( will be sorted in result as well ) @param The type of objects that will be compared @return Sorted array with named subgroups
public static <SortingType extends MultiComparable<? super SortingType>> ArrayList<Object> sortNamed(
            @NotNull List<SortingType> mas) {
        Object[] pep = mas.toArray();
        ArrayList<Object> Return = rsortAndReturnArrayWithNamedBlocks(pep, null);
        ListIterator<SortingType> iter = mas.listIterator();
        for (Object item : pep) {
            iter.next();
            @SuppressWarnings("unchecked")
            SortingType Cast = (SortingType) item;
            iter.set(Cast);
        }
        return Return;
    }
public static < SortingType extends MultiComparable < ? super SortingType > > ArrayList < Object > sortNamed ( @ NotNull List < SortingType > mas ) { Object [ ] pep = mas . toArray ( ) ; ArrayList < Object > Return = rsortAndReturnArrayWithNamedBlocks ( pep , null ) ; ListIterator < SortingType > iter = mas . listIterator ( ) ; for ( Object item : pep ) { iter . next ( ) ; @ SuppressWarnings ( "unchecked" ) SortingType Cast = ( SortingType ) item ; iter . set ( Cast ) ; } return Return ; }
Sort array and name each subgroup of sorted data
 @param mas Array to sort (will be sorted in result as well)
 @param <SortingType> The type of objects that will be compared
 @return Sorted array with named subgroups
Sort array and name each subgroup of sorted data @param mas Array to sort ( will be sorted in result as well ) @param <SortingType > The type of objects that will be compared @return Sorted array with named subgroups
//All items in Temp are SortingType class.