Sorting and Pagination

47 views
Skip to first unread message

Martin Roberts

unread,
Jan 21, 2015, 4:31:22 AM1/21/15
to clever-de...@googlegroups.com
Greetings,

Looking into your announcement about new pagination links I noticed the statement that "you cannot use range-based pagination and the sort parameter simultaneously".  Indeed, when I tried to pull sections by subject in the explorer I got an error requesting the second page.  (Although there was a 'next' link returned, which is a bit misleading.)

Is there any plan to support sorting past the first page in the future, or should we design away from that?

I am imagining a UI where I list courses in alphabetical order. Will I have to download them all and sort for myself?

Thank you,
Martin.

Taylor Singletary

unread,
Jan 21, 2015, 2:09:57 PM1/21/15
to Martin Roberts, clever-de...@googlegroups.com
Hi Martin,

Thanks for writing in.

We have no current plans to support sorted, range-based pagination. Is the context you're thinking of using it in one where you'd be issuing requests to Clever on demand, during a user session?

We would definitely recommend that you fetch the full collection first with default sorting and perform any additional organization server-side. 

Best,
Taylor

Martin Roberts

unread,
Jan 21, 2015, 2:33:17 PM1/21/15
to clever-de...@googlegroups.com, martin....@hapara.com
Hi Taylor,

Yes, I had been thinking of pulling pages as the user clicked through.  My data volumes do permit pre-fetching, however, so I will look to do that.

Thank you,
Martin.
Reply all
Reply to author
Forward
0 new messages