Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sorting Not working #12

Open
sathishmoo opened this issue Mar 7, 2016 · 5 comments
Open

Sorting Not working #12

sathishmoo opened this issue Mar 7, 2016 · 5 comments

Comments

@sathishmoo
Copy link

Hi
while search , Based on VID i'm sorting but in result set in between some of the records are missing

my code is

$GLOBALS['obj_video_store'] ->search((new \Search\Query('VID <'.$_GET['lastRecordId']))->limit(10)->sort('VID'));

can you tell me what mistake i'm doing here, Please.

@sathishmoo sathishmoo changed the title Use AND condition in filter Sorting Not working Mar 9, 2016
@sathishmoo
Copy link
Author

Hi Tom,

I'm facing some issues while sort based on date

While sorting , result set is incorrect

@tomwalder
Copy link
Owner

I'll try and take a look this weekend!

@phpso10
Copy link

phpso10 commented Dec 26, 2016

Can someone help me?
I am trying to Sort the results based on the Search API. everything is working fine, but don't know who to pass the Sort parameter ASC and DESCENDING along with SORT call.

$obj_query = (new \Search\Query('createdon > ' . $timex))
->fields(['channeldesc', 'channeltitle','voicedesc','uploadedby'])
->limit($items_per_page)
->offset($offset)
->sort('createdon',Query::ASC);

Can someone help, what I should be substituting in the place of "Query::ASC" to get sorted in Ascending order?

Thank you!

@phpso10
Copy link

phpso10 commented Jan 3, 2017

Tom -- can you please let me know how I should pass ASC and DESC to the sort function?

if I give sort ('createdon','DESC') its not working.
please help.
Thank you.

@tomwalder
Copy link
Owner

Hey there,

Sorry - snowed under at the moment. Will take a look ASAP

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

No branches or pull requests

3 participants