How To: Sorting Time Page In Reverse Order

Discussion forum about Anuko Time Tracker
Post Reply
tdrusk
Posts: 3
Joined: Sun Jan 25, 2015 8:38 pm

How To: Sorting Time Page In Reverse Order

Post by tdrusk » Sun Jan 25, 2015 8:57 pm

I just wanted to share something I found out.

I really liked how toggl shows the time spent in reverse order. To me, the most relevant things are the things I just did. I applied it to Anuko.
normal.png
how time page normally looks
normal.png (12.61 KiB) Viewed 2904 times
reversed.png
time page reversed
reversed.png (12.61 KiB) Viewed 2904 times
All you have to do is
  • Edit WEB-INF/lib/ttTimeHelper.class.php
  • find "// getRecords - returns time records for a user for a given date."
replace

Code: Select all

return $result;
witi

Code: Select all

return array_reverse($result);
Refresh the time page and you should be good to go!

Post Reply