public static NSArray sortedArraySortedWithKey(NSArray array, String key, NSSelector selector) { ERXAssert.PRE.notNull("Attempting to sort null array of eos.", array); ERXAssert.PRE.notNull("Attepting to sort array of eos with null key.", key); NSArray order=new NSArray(new Object[] {EOSortOrdering.sortOrderingWithKey(key, selector == null ? EOSortOrdering.CompareCaseInsensitiveAscending : selector)}); return EOSortOrdering.sortedArrayUsingKeyOrderArray(array, order);
public static NSArray sortedArraySortedWithKey(NSArray array, String key) { return sortedArraySortedWithKey(array, key, null);
    public static NSArray sortedArraySortedWithKey(NSArray array, String key, NSSelector selector) {        ERXAssert.PRE.notNull("Attempting to sort null array of eos.", array);        ERXAssert.PRE.notNull("Attepting to sort array of eos with null key.", key);        NSArray order=new NSArray(new Object[] {EOSortOrdering.sortOrderingWithKey(key, selector == null ? EOSortOrdering.CompareCaseInsensitiveAscending : selector)});        return EOSortOrdering.sortedArrayUsingKeyOrderArray(array, order);    }