I am using Sphinx Search (http://sphinxsearch.com/) in combination with SphinxQL
and need to sort by a string attribute:
I configured the attribute as sql_attr_string = myattribute
.
Example query: SELECT * FROM myindex ORDER BY myattribute ASC
;
The order I get with order by myattribute ASC
:
1a, 100b, 101c, 2a, 3a
The order I want:
1a, 2a, 3a, 100b, 101c
Is there a way to achieve this?