Skip to content

Added setSecondOrder() function #26

Open
wants to merge 7 commits into from

1 participant

@PingusPepan

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 join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.