Quantcast
Channel: Omeka Forums » Topic: Reports Plugin: reversing order of results
Viewing all articles
Browse latest Browse all 3

Tom on "Reports Plugin: reversing order of results"

$
0
0

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 to modify the HTML report (Html.php) to do this, and somewhere in here:


<?php $page = 1;
while ($items = get_db()->getTable('Item')->findBy($this->_params, 30, $page)):
foreach ($items as $item) : ?>

I have tried adding this line below the above, but it didn't work:


<?php $items = array_reverse($items); ?>

Any tips gratefully received!

Tom


Viewing all articles
Browse latest Browse all 3

Trending Articles