Opened 12 years ago

Closed 8 years ago

#9319 closed bug (fixed)

Ordering problems

Reported by: dsjonny Owned by: nobody
Priority: normal Milestone: R1
Component: Applications/Tracker Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description (last modified by diver)

I found 2 errors in the ordering:

As you can see the ordering is correct at the begining of the list, but if there are accentuated letters the soring is wrong.

Next I want to sort the list with the specific order, but I got another problem:

I need to add a "0" before the 1 char numbers. And finally, this would be the correct order:

I have no idea if this only a Tracker problem, or a system wide, and only for Hungarian or for another language too.

I hope it is correctable, and somebody can fix it.

Attachments (3)

order.png (19.4 KB ) - added by dsjonny 12 years ago.
order1.png (19.7 KB ) - added by dsjonny 12 years ago.
order2.png (20.0 KB ) - added by dsjonny 12 years ago.

Download all attachments as: .zip

Change History (11)

by dsjonny, 12 years ago

Attachment: order.png added

by dsjonny, 12 years ago

Attachment: order1.png added

by dsjonny, 12 years ago

Attachment: order2.png added

comment:1 by anevilyak, 12 years ago

Component: - GeneralApplications/Tracker
Owner: changed from nobody to axeld

Tracker might not be using Locale for collation yet.

comment:2 by anevilyak, 12 years ago

Version: R1/alpha4.1R1/Development

in reply to:  1 ; comment:3 by leavengood, 12 years ago

Replying to anevilyak:

Tracker might not be using Locale for collation yet.

I'm sure that is the case here, but shouldn't Tracker's natural ordering sort the comment numbers right, even without the 0 prefix?

in reply to:  3 comment:4 by anevilyak, 12 years ago

Replying to leavengood:

I'm sure that is the case here, but shouldn't Tracker's natural ordering sort the comment numbers right, even without the 0 prefix?

I'd need to look to be sure, but I believe the natural sorting is only used for file/folder names. Since the comment attribute in question is just a generic text attribute type, it's not necessarily obvious that natural sorting should always be used for it as opposed to lexicographic sort.

comment:5 by anevilyak, 12 years ago

In this specific instance another alternative would be to add an integer attribute to the corresponding filetype and use that (i.e. how Audio:Track works), since Tracker would then use an integer sorting algorithm rather than a text-based one.

comment:6 by axeld, 8 years ago

Owner: changed from axeld to nobody
Status: newassigned

comment:7 by dsjonny, 8 years ago

The problem solved. Tested in hrev51195 GCC2 Hybrid. Ticket can close.

comment:8 by diver, 8 years ago

Description: modified (diff)
Resolution: fixed
Status: assignedclosed

Thanks for the update!

Note: See TracTickets for help on using tickets.