mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-09 16:38:45 +00:00
implementing CPString compare: so that sorting will work with default selector
This commit is contained in:
1 parent
0ac0a84b18
commit
fc9e5b3a4c
1 file changed
+12
-1
+12
-1
@@ -404,6 +404,17 @@ var CPStringHashes = new objj_dictionary();
|
||||
|
||||
// Identifying and comparing strings
|
||||
|
||||
/*
|
||||
Compares the receiver to the specified string.
|
||||
@param aString the string with which to compare
|
||||
@return the result of the comparison
|
||||
*/
|
||||
- (CPComparisonResult)compare:(CPString)aString
|
||||
{
|
||||
return [self compare:aString options:nil];
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Compares the receiver to the specified string.
|
||||
@param aString the string with which to compare
|
||||
@@ -411,7 +422,7 @@ var CPStringHashes = new objj_dictionary();
|
||||
*/
|
||||
- (CPComparisonResult)caseInsensitiveCompare:(CPString)aString
|
||||
{
|
||||
return [self compare:aString options:CPCaseInsensitiveSearch]
|
||||
return [self compare:aString options:CPCaseInsensitiveSearch];
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user