Quantcast
Channel: Omeka Forums » Topic: Reports Plugin: reversing order of results
Browsing latest articles
Browse All 3 View Live

Tom on "Reports Plugin: reversing order of results"

I am trying to figure out how to display the results of a report in ascending order, as opposed to the default descending order, and after a few hours haven't got very far. I would imagine that I need...

View Article


patrickmj on "Reports Plugin: reversing order of results"

In that snippet of code, try adding these to $this->_params before calling findBy 'sort_field' => 'added' 'sort_dir' => 'a' or something similar, based on what field you need to sort on.

View Article


Tom on "Reports Plugin: reversing order of results"

Thanks Patrick, I used this code in the end which works well: $params = array ( 'sort_field' => 'added', 'sort_dir' => 'a' ); while ($items = get_db()->getTable('Item')->findBy($params, 30,...

View Article
Browsing latest articles
Browse All 3 View Live