summaryrefslogtreecommitdiff
path: root/src/sort.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sort.c')
-rw-r--r--src/sort.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sort.c b/src/sort.c
index 7ddd37d95..7feae9206 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;