Sorting the projects DESC in stead of ASC

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Sorting the projects DESC in stead of ASC

Post by Reinder »

I want to sort the projects DESC because the date is in front of the proejct name (and the latest projects should be on top). Where can I configure this?? Not only in the "shwich" drop down but also in the list when choosing a project to report an issue on....
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

This is currently not configurable.

You would need to edit a few of the internal routines to change this, probably starting in core/print_api.php (print_project_option_list).
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Post by Reinder »

I thought as much, but the problem is where to change this, I expected something like SELECT * FROM mantis_project_table WHERE etc etc ORDER BY name; So the only thing I had to do was ORDER BY name DESC;

But I cant seem to find this query :(
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

Unless you are an admin, the project list comes from core/user_api.php -> user_get_accessible_projects().
Reinder
Posts: 119
Joined: 26 Apr 2005, 11:08

Post by Reinder »

A, I found it !!:) it's the ORDER BY p.name DESC in the project_hierarchy_api.php file. Tnx !! :) Now I can order them by date (DESC)
Post Reply