X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/7d8c555e92954b02d40c15702476fd48e55c4f94..40531be0e338556df5510f49f4472ea50713962f:/src/sort.c diff --git a/src/sort.c b/src/sort.c index 1a3fecb6..ff275c95 100644 --- a/src/sort.c +++ b/src/sort.c @@ -200,7 +200,7 @@ void sortCommand(redisClient *c) { } /* Destructively convert encoded sorted sets for SORT. */ - if (sortval->type == REDIS_ZSET) zsetConvert(sortval, REDIS_ENCODING_RAW); + if (sortval->type == REDIS_ZSET) zsetConvert(sortval, REDIS_ENCODING_SKIPLIST); /* Load the sorting vector with all the objects to sort */ switch(sortval->type) {