View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0010419||mantisbt||other||public||2009-04-27 07:03||2019-05-24 16:47|
|Summary||0010419: Allow customized sorting of versions|
It would be useful if the Versions sort order could be customized.
Currently versions are sorted based on their release date.
Additional sorting options to be considered: version_compare(), alphanumeric sort
|Tags||No tags attached.|
|related to||0004750||new||Add option to sort product version alphabetically|
|has duplicate||0011095||closed||jreese||Version Number Definitions are sorted in a non-useful way.|
|has duplicate||0014503||closed||dregad||Incorrect order of versions in dropdowns|
|has duplicate||0015951||closed||atrol||Numeric releases are ordered incorrectly in Target Version menus|
|related to||0025791||new||sort target_version column (all version columns) by assigned date|
If I remember correctly, version sorting is determined by the date/time associated with each version.
Is it possible to change this? Even as a quick hack.. it is more useful to us to have it sorted alphabetically than by the date the release was created.
Check core/version_api.php functions version_get_all_rows* and update the query to order by 'version' instead of 'date_order'. Note that this will likely affect ordering on the roadmap and changelog pages as well.
Sorry for the delay. I have just gotten around to testing the impact of this. I can confirm it does alter the Roadmap as well - this isn't a problem.
BUT this fix does not alter the order that versions appear in on the 'View Issues' page?
However, changing the same in 'version_get_all_rows_with_subs' does seem to have the desired result. Can you advise about this?
Where did it not give the desired result?
|2009-04-27 07:03||jonathh||New Issue|
|2009-04-27 09:01||jreese||Note Added: 0021693|
|2009-04-27 09:01||jreese||Status||new => feedback|
|2009-04-27 09:27||jonathh||Note Added: 0021696|
|2009-04-27 09:34||jreese||Note Added: 0021697|
|2009-07-29 05:53||jonathh||Note Added: 0022596|
|2009-10-29 08:48||jreese||Relationship added||has duplicate 0011095|
|2010-06-24 08:04||polzin||Note Added: 0025974|
|2012-07-26 16:23||dregad||Relationship added||has duplicate 0014503|
|2012-07-26 16:30||dregad||Priority||normal => low|
|2012-07-26 16:30||dregad||Severity||minor => feature|
|2012-07-26 16:30||dregad||Status||feedback => acknowledged|
|2012-07-26 16:30||dregad||Summary||Versions are not sorted => Allow customized sorting of versions|
|2012-07-26 16:30||dregad||Description Updated||View Revisions|
|2013-05-30 17:30||atrol||Relationship added||has duplicate 0015951|
|2015-08-01 14:55||atrol||Relationship added||related to 0004750|
|2019-05-24 16:47||atrol||Relationship added||related to 0025791|