mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +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:
@@ -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