Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006261TestLinkTest Specificationpublic2014-03-25 17:232014-04-25 17:38
Reportertferreira 
Assigned Tofman 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version1.9.9 (2013 Q4 - bug fixing) 
Fixed in Version1.9.10 (2014 Q1 - bug fixing) 
Summary0006261: Test suite 'Sort alphabetically' is not working properly
DescriptionWhen pressing the 'Sort alphabetically' button, the test suites that start with an uppercase letter are sorted separately from the ones that start with a lowercase letter.
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
BrowserChrome
PHP Version
TestCaseID
QA Team - Task Workflow StatusREADY FOR TESTING
Attached Files

- Relationships
child of 0006048closedfman Availables hot-fixes for 1.9.9 & How To get full fixed package from gitorious 

-  Notes
(0020619)
fman (administrator)
2014-03-25 20:31

Please provide detailed steps to reproduce with expected result and actual result.
(0020622)
tferreira (reporter)
2014-03-25 20:50

Steps to reproduce:

1. Select "Test Specification" link on main page
2. Create four new test suites in your project with the names: "Suite", "anotherSuite", "BasicSuite", "fakeSuite" (the order of creation is not important)
3. Select the project name in the tree-list
4. Press "Sort alphabetically" button in the "Test Suite Operations"


Results:

The expected result is: "anotherSuite", "BasicSuite", "fakeSuite", "Suite"

The actual result is: "BasicSuite", "Suite", "anotherSuite", "fakeSuite"
(0020629)
fman (administrator)
2014-03-25 21:30
edited on: 2014-03-25 21:32

Implementation is done using nasort(), that works in this way.
(see http://sourcefrog.net/projects/natsort/ [^])

from http://sourcefrog.net/projects/natsort/ [^]

Order

ASCII-code order is also called ASCIIbetical order.[46] Collation of data is sometimes done in this order rather than "standard" alphabetical order (collating sequence). The main deviations in ASCII order are:

    All uppercase come before lowercase letters, for example, "Z" before "a"
    Digits and many punctuation marks come before letters; for example, "4" precedes "one"
    Numbers are sorted naïvely as strings; for example, "10" precedes "2"

An intermediate order—readily implemented—converts uppercase letters to lowercase before comparing ASCII values. Naïve number sorting can be averted by zero-filling all numbers (e.g. "02" will sort before "10" as expected), although this is an external fix and has nothing to do with the ordering itself.





Need to understand if a better implementation exists.
(may be is simply enough to ucase() or lcase() before doing nasort())
IMHO if people choose a naming convention (Capital for first letter, or lower case for first letter) he/she has to mantain it always.

(0020630)
fman (administrator)
2014-03-25 21:44

https://gitorious.org/testlink-ga/testlink-code/commit/ace4f1df2bfa5cdd3972ff41009bbce3ea80cc10 [^]
(0020812)
fman (administrator)
2014-04-25 17:38

1.9.10 released

- Issue History
Date Modified Username Field Change
2014-03-25 17:23 tferreira New Issue
2014-03-25 20:31 fman Note Added: 0020619
2014-03-25 20:50 tferreira Note Added: 0020622
2014-03-25 21:30 fman Note Added: 0020629
2014-03-25 21:31 fman Note Edited: 0020629 View Revisions
2014-03-25 21:32 fman Note Edited: 0020629 View Revisions
2014-03-25 21:33 fman QA Team - Task Workflow Status => TBD
2014-03-25 21:33 fman Priority normal => low
2014-03-25 21:41 fman Fixed in Version => 1.9.10 (2014 Q1 - bug fixing)
2014-03-25 21:44 fman QA Team - Task Workflow Status TBD => READY FOR TESTING
2014-03-25 21:44 fman Note Added: 0020630
2014-03-25 21:44 fman Status new => resolved
2014-03-25 21:44 fman Resolution open => fixed
2014-03-25 21:44 fman Assigned To => fman
2014-03-25 21:44 fman Relationship added child of 0006048
2014-04-25 17:38 fman Note Added: 0020812
2014-04-25 17:38 fman Status resolved => closed



Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker