Skip to content
Snippets Groups Projects
Commit 4fd8a3a8 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

fixed a bug in sort_array

Rev: lib/include/array.pre.pike:1.3
parent 24f3e6ca
No related branches found
No related tags found
No related merge requests found
...@@ -108,8 +108,7 @@ varargs mixed *sort_array(array foo,function cmp, mixed ... args) ...@@ -108,8 +108,7 @@ varargs mixed *sort_array(array foo,function cmp, mixed ... args)
{ {
foo+=({}); foo+=({});
sort(foo); sort(foo);
reverse(foo); return reverse(foo);
return foo;
} }
length=sizeof(foo); length=sizeof(foo);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment