mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 08:32:58 +00:00
New: sort the keys in CPDictionary -description.
This makes it easier to find an item in a large dictionary.
This commit is contained in:
1 parent
86e5c15e3c
commit
42ad40d10d
1 file changed
+3
-1
@@ -723,10 +723,12 @@ var CPDictionaryShowNilDeprecationMessage = YES,
|
||||
- (CPString)description
|
||||
{
|
||||
var string = "@{",
|
||||
keys = self._keys,
|
||||
keys = [self allKeys],
|
||||
index = 0,
|
||||
count = self._count;
|
||||
|
||||
keys.sort();
|
||||
|
||||
for (; index < count; ++index)
|
||||
{
|
||||
if (index === 0)
|
||||
|
||||
Reference in new issue
Block a user