Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
3.1.x-dev
-
None
Description
When Trash is entered the results are sorted by "Sent to Trash date (descending)", but after pagination is used the sort order is changed to "Sent to Trash date (ascending)", which is confusing.
Steps to reproduce:
1. Login as admin
2. Create 11 Content Items and send them to Trash in this order:
- TestFolder1
- TestFolder2
- TestFolder3
- TestFolder4
- TestFolder5
- TestFolder6
- TestFolder7
- TestFolder8
- TestFolder9
- TestFolder10
- TestFolder11
3. Go to Trash
4. Switch to the second page of results
Expected:
TestFolder1 is displayed on second page (results are sorted in descending order)
Actual:
TestFolder11 is displayed on second page (results are sorted in ascending order).
More broadly: the sorting column and order from the first page of results are carried over when pagination is used.
Also, the results you get after you visit:
- http://example.com/admin/trash/list?trash_search%5Bpage%5D=1
- http://example.com/admin/trash/list
are different, as they differ in sorting order.