Commit 47ba50be authored by Marius Wachtler's avatar Marius Wachtler

Fix wrong arg order in sorted()

parent 85287cba
...@@ -450,7 +450,7 @@ Box* notimplementedRepr(Box* self) { ...@@ -450,7 +450,7 @@ Box* notimplementedRepr(Box* self) {
return boxStrConstant("NotImplemented"); return boxStrConstant("NotImplemented");
} }
Box* sorted(Box* obj, Box* key, Box* cmp, Box** args) { Box* sorted(Box* obj, Box* cmp, Box* key, Box** args) {
Box* reverse = args[0]; Box* reverse = args[0];
BoxedList* rtn = new BoxedList(); BoxedList* rtn = new BoxedList();
...@@ -458,7 +458,7 @@ Box* sorted(Box* obj, Box* key, Box* cmp, Box** args) { ...@@ -458,7 +458,7 @@ Box* sorted(Box* obj, Box* key, Box* cmp, Box** args) {
listAppendInternal(rtn, e); listAppendInternal(rtn, e);
} }
listSort(rtn, key, cmp, reverse); listSort(rtn, cmp, key, reverse);
return rtn; return rtn;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment