public
Description: A cross-platform web server that's scripted with Nu.
Homepage: http://programming.nu
Clone URL: git://github.com/timburks/nunja.git
Sort keys in url query strings.
timburks (author)
Thu Jul 31 23:48:37 -0700 2008
commit  4e54b3a6e20cb2af03c4cc82d670d24e0eee7ca8
tree    f0117dfcc851e64904da71ef659ae4118c97fc6d
parent  2a8ff574caa963aa7cac2a0be864ab0ca6365901
...
120
121
122
123
 
124
125
126
...
131
132
133
 
 
134
135
136
...
120
121
122
 
123
124
125
126
...
131
132
133
134
135
136
137
138
0
@@ -120,7 +120,7 @@ static char int_to_char[] = "0123456789ABCDEF";
0
 - (NSString *) urlQueryString
0
 {
0
     NSMutableString *result = [NSMutableString string];
0
- NSEnumerator *keyEnumerator = [[self allKeys] objectEnumerator];
0
+ NSEnumerator *keyEnumerator = [[[self allKeys] sortedArrayUsingSelector:@selector(compare:)] objectEnumerator];
0
     id key;
0
     while (key = [keyEnumerator nextObject]) {
0
         if ([result length] > 0) [result appendString:@"&"];
0
@@ -131,6 +131,8 @@ static char int_to_char[] = "0123456789ABCDEF";
0
 
0
 @end
0
 
0
+
0
+
0
 static NSMutableDictionary *parseHeaders(const char *headers)
0
 {
0
     NSMutableDictionary *dict = [NSMutableDictionary dictionary];

Comments

    No one has commented yet.