Skip to content
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.

Added setSecondOrder() function #26

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

Conversation

PingusPepan
Copy link
Contributor

Added a setSecondOrder() function which allows to order the table by a second (third, fourth) column. I find it usable and use it very extensively. However support for other datasources different than NetteDatabase have to be created. It implements a new method multipleOrderData(). Please, check the source, test it and let me know.

Use as follows:
For Grid:
$this->setSecondOrder(array('url', 'ASC')); // Order by a second column url ascending

$this->setSecondOrder(array(array('url', 'ASC'), array('name', 'DESC'))); // Order by a second column url ascending, name descending

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

Successfully merging this pull request may close these issues.

1 participant