-
Notifications
You must be signed in to change notification settings - Fork 6
Allow sorting parameters, mainly to get PDC items sorted by name #61
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
base: master
Are you sure you want to change the base?
Conversation
… universally implemented
| return true; | ||
| } | ||
|
|
||
| protected function getOrderClause(mixed $orderBy, mixed $order) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mixed als typehint kunnen we nog niet toepassen aangezien deze plug-in ook nog compatible moet zijn met php7.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
excusé; niet goed gekeken naar de autocomplete; dat moet natuurlijk gewoon string zijn.
mvdhoek1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ik kijk er later nog even naar, iets met te weinig tijd.
Rovasch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alleen de comments op ln 128, 133 en 141 lijken me niet nodig.
|
Als jullie de comments niet willen, mag je ze van mij weghalen. Mijn insteek is; als er een reden is te denken; he, wat gebeurt hier? dan is een comment gewenst. Het is aan jullie, jullie plugin, jullie regels :) |
Allow sorting parameters, mainly to get PDC items sorted by name, but universally implemented.
While retaining the pre-existing sorting for backward compatibility, the following URL parameters now determine sorting;
orderby-> the field or comma sep fields to sort on, example;post_date,IDorder-> the order, ASC or DESC, example;DESC,ASCsort by date DESC, ID DESC can be achieved by
orderby=post_date,ID&order=DESC,DESCbut also by
orderby=post_date,ID&order=DESCSorting by post-title, ASC
orderby=post_title&order=ASCetc.
First commit changed whitespace because the supplied .editorconfig file does not match the actual coding standards used. Will correct and do second commit.