New: sort the keys in CPDictionary -description.

This makes it easier to find an item in a large dictionary.
This commit is contained in:
Aparajita Fishman
2013-08-09 08:28:37 -04:00
parent 86e5c15e3c
commit 42ad40d10d
+3 -1
View File
@@ -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)