Re: [Rhythmbox-devel] Other sorting issues (was Re: Suggestion (quick))
- From: Edward Catmur <ed catmur co uk>
- To: rhythmbox-devel gnome org
- Subject: Re: [Rhythmbox-devel] Other sorting issues (was Re: Suggestion (quick))
- Date: Fri, 01 Sep 2006 23:23:56 +0100
On Fri, 2006-09-01 at 14:31 -0700, Michael Knepher wrote:
> On another sorting issue, is there a reason why spaces are not
> considered characters when sorting?
>
> It seems that a list of tracks that rb sorts like this:
>
> Love Of My Life
> Lover I Love You
> Love Ritual
> Lovers In A Dangerous Time
> Love Should
>
> should more properly be sorted like this:
>
> Love Of My Life
> Love Ritual
> Love Should
> Lover I Love You
> Lovers In A Dangerous Time
>
> Or am I the only one who thinks this? Although, since gedit sorts this
> list the same way rb does, I'm guessing this is probably a gtk issue?
No; it's determined by the libc locale. Compare:
$ echo "Love Of My Life
Lover I Love You
Love Ritual
Lovers In A Dangerous Time
Love Should" | sort
$ echo "Love Of My Life
Lover I Love You
Love Ritual
Lovers In A Dangerous Time
Love Should" | LC_COLLATE=C sort
Ed
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]