NSArray<String> displayPropertyKeys = (NSArray<String>) d2wContext().valueForKey(Keys.displayPropertyKeys);
for (int i = 0; i < sortOrderingDefinition.count();) {
String sortKey = sortOrderingDefinition.objectAtIndex(i++);
String sortSelectorKey = sortOrderingDefinition.objectAtIndex(i++);
if (!checkSortOrderingKeys() || isValidSortKey(displayPropertyKeys, sortKey)) {
EOSortOrdering sortOrdering = new EOSortOrdering(sortKey, ERXArrayUtilities.sortSelectorWithKey(sortSelectorKey));
validatedSortOrderings.addObject(sortOrdering);
}
}
sortOrderings = validatedSortOrderings;
if (log.isDebugEnabled()) {