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

Pagination is starting from first to last #3

Closed
iahmedhendi opened this issue Jan 22, 2017 · 1 comment
Closed

Pagination is starting from first to last #3

iahmedhendi opened this issue Jan 22, 2017 · 1 comment

Comments

@iahmedhendi
Copy link

all pagination systems depend on getting last group of items then go to the old one but your class do the opposite
please fix.
Thanks

@mareimorsy
Copy link
Owner

Dear MareiDB user,
Getting the result set in ascending order is just the default behavior, and it has nothing to do with pagination.
You can use orderBy() method just right before paginate() to order the result set in a descending order by a column name as it's shown in the following link :
https://github.com/mareimorsy/DB#order-the-result-set
and also, here is a tutorial of how to do that :
https://www.youtube.com/watch?v=1GbWpC9dSas&list=PLyI730B8iC9X0x361y6R3LIJa6TDqfqS0&index=11

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

No branches or pull requests

2 participants