]> git.saurik.com Git - redis.git/commit
Order output of commands returning random arrays using table.sort when called from...
authorantirez <antirez@gmail.com>
Tue, 31 Jan 2012 15:09:21 +0000 (16:09 +0100)
committerantirez <antirez@gmail.com>
Tue, 31 Jan 2012 15:09:21 +0000 (16:09 +0100)
commit548efd91e5a33e1358213a902b8533d88f40f7cf
tree603abe3bf4f9a9ab8b501a0755c5725e66df98d8
parent8dd19d818f52d27284fd3e3b6e0fc237388e7678
Order output of commands returning random arrays using table.sort when called from Lua, partially fixing issue #165. The issue is yet not completely fixed since we can't add the REDIS_CMD_SORT_FOR_SCRIPT flag in SORT currently, both because it may contain NULLs and because it is not cool to re-sort everything at every call when instead this should be sorted only if BY <constant> is used.
src/redis.c
src/redis.h
src/scripting.c