X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/42a239b8887a2f840f4207a43c8277d48df08daf..524b79d231551845a865aea9558188f7108cc352:/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);