Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

SortMode not working #20

Open
cadrogui opened this issue Dec 14, 2014 · 2 comments
Open

SortMode not working #20

cadrogui opened this issue Dec 14, 2014 · 2 comments

Comments

@cadrogui
Copy link

Hi, im trying to sort my results by a UNIX_TIMESTAMP field, with no results, first i think that may be my sphinx conf or someting but i write a simple php script and works the sort by date

ive try t sort using this config

cl._sort = "fecha_ingreso";
cl._sort = { SPH_SORT_ATTR_DESC: 'fecha_ingreso' }
cl._sort = {'SPH_SORT_ATTR_DESC': 'fecha_ingreso' }

any ideas..

regards.

@cadrogui
Copy link
Author

ive found the way to do, thats the way!.

cl.SetSortMode(SphinxClient.SPH_SORT_ATTR_DESC, "fecha_ingreso")

thanks for the api!

@touv
Copy link
Collaborator

touv commented Dec 15, 2014

Cool ;-)

On Sun, Dec 14, 2014 at 11:56 PM, Mikel Carozzi [email protected]
wrote:

ive found the way to do, thats the way!.

cl.SetSortMode(SphinxClient.SPH_SORT_ATTR_DESC, "fecha_ingreso")

thanks for the api!


Reply to this email directly or view it on GitHub
#20 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants