boon/src/main/java/org/boon/sort/Sort.java
public <T> Iterable<T> sort( Class<T> componentClass, Iterable<T> iterable ) {

        if (iterable instanceof List) {
            sort((List) iterable);
            return iterable;
        }

        if (iterable instanceof Collection) {
            return  sort(componentClass, (Collection) iterable);
        }

        if ( iterable == null  ) {
            return Collections.EMPTY_LIST;
        }

        List<T> list = Lists.list(iterable);
        sort(list);
        return list;

    }
public <T> Iterable<T> sort( Class<T> componentClass, Iterable<T> iterable ) {

        if (iterable instanceof List) {
            sort((List) iterable);
            return iterable;
        }

        if (iterable instanceof Collection) {
            return  sort(componentClass, (Collection) iterable);
        }

        if ( iterable == null  ) {
            return Collections.EMPTY_LIST;
        }

        List<T> list = Lists.list(iterable);
        sort(list);
        return list;

    }
public < T > Iterable < T > sort ( Class < T > componentClass , Iterable < T > iterable ) { if ( iterable instanceof List ) { sort ( ( List ) iterable ) ; return iterable ; } if ( iterable instanceof Collection ) { return sort ( componentClass , ( Collection ) iterable ) ; } if ( iterable == null ) { return Collections . EMPTY_LIST ; } List < T > list = Lists . list ( iterable ) ; sort ( list ) ; return list ; }
Sort and you look up the reflection fields.
@param iterable the collection to sort
Sort and you look up the reflection fields .