-
- 223 Posts
I am working with the tree_default_sort setting in 2.3.5-pl. I am simply trying to get my newest documents to the top of the list. Is it possible to change the sorting ASC vs DESC or how best do I achieve this?
-
- 24,544 Posts
You can set tree_default_sort to 'createdon', but I was surprised to find no setting for the sort direction.
Looking at the JS code, though, it looks like if you set tree_default_sort to 'createdon' it may automatically switch to DESC.
-
- 223 Posts
When I use createdon I am seeing sorting that places the oldest at the top of the list
-
- 24,544 Posts
Weird. Maybe the JS code is overridden by the PHP code I mentioned above.
-
- 223 Posts
I just upgraded to 2.4.0-pl, am using 'createdon' but am seeing the oldest at the top of the list.
-
- 24,544 Posts
Maybe there's no way to do it (or I just don't know it).
[update] Aha. Try setting the context_tree_sortdir System Setting to DESC. Create the setting if it doesn't exit.