X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/e323635c2d9d9039442cd1014932e4dd314d2d06..7eb850ef0e437323e2d84157ddc2e6e82af57bbc:/src/scripting.c diff --git a/src/scripting.c b/src/scripting.c index be52a114..35b654f7 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -282,8 +282,6 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) { * reply as expected. */ if ((cmd->flags & REDIS_CMD_SORT_FOR_SCRIPT) && (reply[0] == '*' && reply[1] != '-')) { - /* Skip this step if command is SORT but output was already sorted */ - if (cmd->proc != sortCommand || server.sort_dontsort) luaSortArray(lua); } sdsfree(reply);