Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alphabetic Sort
18-03-2012, 19:09
Post: #1
Alphabetic Sort
A minor issue, but when I look at the artist list, k. d. lang appears at the very end (after the uppercase 'Y'). Note she prefers her name in lowercase. Is the alphabetic listing case independent?
Find all posts by this user
Quote this message in a reply
18-03-2012, 21:34
Post: #2
RE: Alphabetic Sort
(18-03-2012 19:09)DaveWr Wrote:  A minor issue, but when I look at the artist list, k. d. lang appears at the very end (after the uppercase 'Y'). Note she prefers her name in lowercase. Is the alphabetic listing case independent?

MinimServer does case-independent sorting for some lists (I think the only one currently is the list of tag names). As you've discovered, the sort for tag values is lexicographical (case-sensitive). I agree that k.d. should have her name in the K section, and there are various ways that I could do that:

1) Change the artist sorting to be case-insensitive, but leave all the other sorting (Composer, album title, track title, etc.) as case-sensitive.

2) Change all the sorting to be case-insensitive.

3) Do something special case for lower-case initial letters in tag values (presumably there won't be many of these) and sort these values as if the first letter (only) were changed to upper case. This would mean that "k. d. lang" is sorted as "K. d. lang", and would therefore come after "K. E. Smith" (for example).

4) Leave the sorting as case-sensitive by default, but allow the user to specify a custom sort position for "exceptional" individual values. For example, the user could say that "k. d. lang" should be sorted as "K. D. Lang".

I don't like 1), as it seems arbitrary and inconsistent.

I do like 2), but I'm a bit concerned that there might be some situations where it isn't the right thing to do, though I can't think of any at the moment. I'm also a bit concerned that it might add overhead that would make MinimServer slower when sorting large lists, but having just looked at the code that does this sorting, I think it's likely to be OK.

I'm not keen on 3) because it could still give surprising results (with k.d appearing after K.E).

4) is convenient from a MinimServer implementation perspective because I could use the same internal mechanism that I'm planning to use to enable custom sorting in a future MinimServer release. The disadvantage is that is adds complexity and extra work for the user.

My current inclination is to try 2) in the next beta release (after I've done some performance testing on it) and see how people find it.
Find all posts by this user
Quote this message in a reply
19-03-2012, 10:16
Post: #3
RE: Alphabetic Sort
Mine would be 2), I an't see where case sensitive would be appropriate. That or to be honest can just ignore the artists preference for her name in lowercase.

4) requires the use of albumsortartist, the same issue for getting rid of the 'the' problem. I don't think many people use this.

Dave
Find all posts by this user
Quote this message in a reply
19-03-2012, 11:33
Post: #4
RE: Alphabetic Sort
(19-03-2012 10:16)DaveWr Wrote:  Mine would be 2), I an't see where case sensitive would be appropriate. That or to be honest can just ignore the artists preference for her name in lowercase.

4) requires the use of albumsortartist, the same issue for getting rid of the 'the' problem. I don't think many people use this.

Dave

I'm planning to solve the "The" problem without requiring any extra tags such as ALBUMSORTARTIST. I've got some prototype code running, but it isn't ready to release yet. In any case, I agree that 2) is preferable to 4).

It turns out that fixing this apparently simple problem raises similar issues about international characters (e.g., accented letters) in artist names. MinimServer has some problems in this area, and it's going to be tricky implementing a reasonable solution without affecting sorting performance. I'm going to do some experimentation with different approaches.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)