[wp-trac] [WordPress Trac] #16530: Implement locale based sorting
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 11 14:00:07 UTC 2011
#16530: Implement locale based sorting
-------------------------+------------------------------
Reporter: cyberskull | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: 3.1
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------------------
Comment (by cyberskull):
Replying to [comment:1 pavelevap]:
> Related?
>
> http://core.trac.wordpress.org/ticket/11740
I would have to say that it is tangentially related. The issue there has
more to do with direct ordinal sorting. In issue #11740 the character Ř
(0x0158) will never come just after R (0x0052), as there is a difference
of 262 (0x106) characters between the two. What I was trying to get at is
that there are some words that in any given locale that are ignored when
sorting (a & the in English titles, nouns, etc).
So it looks like the correct thing to do is first implement proper
alphabetical sorting according to the locale, then implement proper
grammatical sorting.
Yeah, that is the term I have been looking for: **Grammatical Sorting**.
Back to the main point. In English alphabetical sorting is ordinal sorting
(whether case-sensitive or not). But for languages like Czech ordinal ≠
alphabetical. Implementation-wise, these can be done independent of each
other. But I see this issue as a bit easier to implement as building a
mechanism for sorting alphabetically is more work than sorting based on
the rules of grammar, though the alphabetical would be a big boost to the
grammatical search.
That's enough of my ramblings for now. I hope this is of some use.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16530#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list