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

added sort and sort_direction parameters #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

added sort and sort_direction parameters #17

wants to merge 2 commits into from

Conversation

fraank
Copy link

@fraank fraank commented Nov 11, 2015

Within the config of pagination you can set sort by "name", which represents the basename of the document and any other attributes of the document (for example "title").
You can also set "sort_direction" with "DESC" if you want to reverse the results.

Default params, which can be overwritten in the config of each pagination (works also for collections):
'sort' => 'name',
'sort_direction' => 'ASC',

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

Successfully merging this pull request may close these issues.

1 participant