尝试使用以下命令在redis中进行排序:
sort ids by messages|*->ss ASC LIMIT 0 10 GET messages|*->ss ALPHA
消息| .ss是字符串值 输出:
1 that of
a community in
add ensuring so #this should be at the end before b...
against entitled and #this should be at the end before b...
a give and
a he can
a objective world
a of like
a to I
birthday moment daily
如您所见,空格被忽略。我期待那些线条在“每日生日时刻”之前结束。
add ensuring so
against entitled and
试图设置LC_ALL = C和LC_COLLATE = C环境变量,没有帮助。
redis 3.0.0
CentOS 6.5