how to test sorted order
I am trying to test the sorting order of some items on web application. But not getting any appropriate logic.
Actually there are some text on the form in the below manner :
(just for example) [img]/images/graemlins/smile.gif[/img]
altra power disk
Bita storage device
Now I have to test as Numbers should display in first position and then alphabets in sorted order. As in the above example Item "Bita storage device" is displaying before "Bitac" space should have higher priority then any alphabets.
Above example should come in PASS result.
Re: how to test sorted order
A way is to put the items in an array, and then sort that array and compare the 2 arrays to see if they are the same.
go to www.planetsourcecode.com, they have all types of array sorting functions.