Recent changes module sort by date, but not time
Bug #803806 reported by
David E Drury
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webtrees |
Fix Released
|
Low
|
fisharebest |
Bug Description
When viewing recent changes as a list the sort by date function doesn't work.
I think I originally submitted the relevant code and it seems that function event_sort has changed at some point.
In essence it's now necessary to:-
1. ensure that on compare the $xxx['jd'] variables are always equal.
2. it seems that the result of the compare function has reversed so it's now necessary to reverse the sorted array on the descending date (not ascending as previously).
I've attached a revised and anotated function print_changes_list.
Changed in webtrees: | |
status: | Expired → Confirmed |
status: | Confirmed → Triaged |
importance: | Undecided → Low |
summary: |
- Recent changes module sort error + Recent changes module sort by date, but not time |
Changed in webtrees: | |
assignee: | nobody → fisharebest (fisharebest) |
status: | Triaged → Fix Committed |
To post a comment you must log in.
If I look at the recent changes list, I see that the time component is ignored (only the date is taken into account), but that the "sort by date, oldest first" and "sort by date, newest first" options are working OK.
Are you sure they need reversing - or have I missed something?