MantisBT - TestLink
View Issue Details
0000990TestLinkReportspublic2007-08-23 14:432008-11-07 19:46
mike_h 
fman 
normalminoralways
closedfixed 
1.7.0 RC 3 
1.8 Beta 1 
Firefox 2.0.0.6
0000990: Order of build numbers by name of the build and not by version number
It would be nice if the builds are ordered by their version number in the testreport and in the "Build Management". Currently the builds are ordered by their names which can be a problem (see example in additional information).
- Create Testproject "BuildTest"
- Create Testplan "Testplan"
- Create Builds:
-- 1.0
-- 1.1
-- 1.2
-- 1.10

-> The builds are then ordered in the testreport and in the "Build Management" as follows:
-- 1.0
-- 1.1
-- 1.10
-- 1.2

-> This order can be missleading in the testreport, because then it seems for the user that build 1.10 has been created before build 1.2 (see attached screenshot of testreport "screenshot_order_builds_testreport.jpg").
No tags attached.
jpg screenshot_order_builds_testreport.JPG (60,857) 2007-08-23 14:43
http://mantis.testlink.org/file_download.php?file_id=315&type=bug
jpg

? testplan.class.php (38,569) 2007-08-23 15:00
http://mantis.testlink.org/file_download.php?file_id=316&type=bug
Issue History
2007-08-23 14:43mike_hNew Issue
2007-08-23 14:43mike_hFile Added: screenshot_order_builds_testreport.JPG
2007-08-23 14:43mike_hBrowser => Firefox 2.0.0.6
2007-08-23 14:58mike_hNote Added: 0001955
2007-08-23 15:00mike_hFile Added: testplan.class.php
2007-08-23 16:30fmanNote Added: 0001956
2007-08-23 16:43mike_hNote Added: 0001959
2007-11-09 02:09fmanStatusnew => resolved
2007-11-09 02:09fmanFixed in Version => next development version (1.8 Beta1)
2007-11-09 02:09fmanResolutionopen => fixed
2007-11-09 02:09fmanAssigned To => fman
2008-06-03 16:49mhavlatFixed in Versionnext development version (1.8 Beta1) => 1.8 Beta 1
2008-11-07 19:46mhavlatStatusresolved => closed

Notes
(0001955)
mike_h   
2007-08-23 14:58   
I tried to solve it by editing testplan.class.php (see attached file). There I created a function called sortBuildNames($a, $b) (see lines 871-889), which has been used for an uasort of the $recordset (see line 924).
(0001956)
fman   
2007-08-23 16:30   
OK, but IMHO an option at user interface level is need to allow users the order type.

I will give a look to your code .
(0001959)
mike_h   
2007-08-23 16:43   
Yes I think too that it would be nice to give the user the possibility to set the order of the builds.