mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 08:08:53 -05:00
commit
bb666d445d
@ -447,7 +447,7 @@ void sortCommand(client *c) {
|
||||
serverAssertWithInfo(c,sortval,j == vectorlen);
|
||||
|
||||
/* Now it's time to load the right scores in the sorting vector */
|
||||
if (dontsort == 0) {
|
||||
if (!dontsort) {
|
||||
for (j = 0; j < vectorlen; j++) {
|
||||
robj *byval;
|
||||
if (sortby) {
|
||||
@ -487,9 +487,7 @@ void sortCommand(client *c) {
|
||||
decrRefCount(byval);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (dontsort == 0) {
|
||||
server.sort_desc = desc;
|
||||
server.sort_alpha = alpha;
|
||||
server.sort_bypattern = sortby ? 1 : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user