[mythtv-users] MythVideo: file name sorting oddity

Brion Swanson brions at usalug.net
Thu Dec 13 18:20:51 UTC 2007

So am I basically hearing that the sorting is not wrong.  In the en_US
locale "X", "X 2", and "X 3" are correctly sorted as "X 3", "X 2", "X", and
this is not possible to change (easily or correctly)?

I just want to know if it's worth my time to investigate the source of
MythVideo's use of locale collation and such to try and create some sort of
additional plugin or option patch that would sort differently even in the
current locale?

I'm sure there's a way for me to sort differently (say by file name) and
then rename all my files or just live with it if this is simply not
something that is changable or desired by anyone but me.


On 12/13/07, Michael T. Dean <mtdean at thirdcontact.com> wrote:
> On 12/13/2007 08:05 AM, Brion Swanson wrote:
> > This suggests that my sorting problem really does lie within the Myth
> > code and not my locale or mysql because clearly Myth is re-ordering the
> > results from mysql in order to ignore articles and such,
> Right.  As Anduin mentioned in a previous post, MythVideo re-sorts the
> list independent and does /not/ use a MySQL sort.
> >  but in doing so
> > I'm wondering if it's unintentionally reversing the order of like-named
> > movies (trilogies)?
> >
> Not exactly.  Myth is re-sorting the list, but using a different
> approach which uses a locale-specific collation order that's not exactly
> what you expect.  Myth doesn't pay any attention to the order in which
> results are returned by MySQL.
> To find out why, feel free to move to another country with a different
> locale (including some non-ASCII characters in the alphabet), learn to
> speak/read/collate in the language, and then repeat your DB tests.
> (Basically, MySQL could only properly sort the titles (in a
> properly-configured MythTV database) if you're using US English or
> similar--and even then, as you've discovered, doesn't ignore articles.)
> Mike
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20071213/b6e2797c/attachment-0001.htm 

More information about the mythtv-users mailing list