diff --git a/src/sort.c b/src/sort.c index 7ddd37d95475a01c25841523721cbaff2241100b..7feae92068400fa1c895e615b102f03a7f21bf97 100644 --- a/src/sort.c +++ b/src/sort.c @@ -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;