Opened 7 years ago

Closed 2 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:
Has a Patch: no 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 7 years ago.
order1.png (19.7 KB) - added by dsjonny 7 years ago.
order2.png (20.0 KB) - added by dsjonny 7 years ago.

Download all attachments as: .zip

Change History (11)

Changed 7 years ago by dsjonny

Attachment: order.png added

Changed 7 years ago by dsjonny

Attachment: order1.png added

Changed 7 years ago by dsjonny

Attachment: order2.png added

comment:1 Changed 7 years ago by anevilyak

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

Tracker might not be using Locale for collation yet.

comment:2 Changed 7 years ago by anevilyak

Version: R1/alpha4.1R1/Development

comment:3 in reply to:  1 ; Changed 6 years ago by leavengood

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?

comment:4 in reply to:  3 Changed 6 years ago by anevilyak

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 Changed 6 years ago by anevilyak

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 Changed 2 years ago by axeld

Owner: changed from axeld to nobody
Status: newassigned

comment:7 Changed 2 years ago by dsjonny

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

comment:8 Changed 2 years ago by diver

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

Thanks for the update!

Note: See TracTickets for help on using tickets.