我正在使用 Sphinx Search ( http://sphinxsearch.com/ )SphinxQL
并需要按字符串属性进行排序:
我将属性配置为sql_attr_string = myattribute
.
示例查询:SELECT * FROM myindex ORDER BY myattribute ASC
;
我通过 order by 得到的订单myattribute ASC
:
1a, 100b, 101c, 2a, 3a
我想要的顺序:
1a, 2a, 3a, 100b, 101c
有没有办法做到这一点?