diff --git a/Foundation/CPSortDescriptor.j b/Foundation/CPSortDescriptor.j index 415e0b01a..c7b78c840 100755 --- a/Foundation/CPSortDescriptor.j +++ b/Foundation/CPSortDescriptor.j @@ -136,7 +136,7 @@ CPOrderedDescending = 1; */ - (CPComparisonResult)compareObject:(id)lhsObject withObject:(id)rhsObject { - return (_ascending ? 1 : -1) * [[lhsObject valueForKey:_key] performSelector:_selector withObject:[rhsObject valueForKey:_key]]; + return (_ascending ? 1 : -1) * [[lhsObject valueForKeyPath:_key] performSelector:_selector withObject:[rhsObject valueForKeyPath:_key]]; } /*!