Post Reply 
can sorting ignore characters like ", ' and (
17-11-2014, 14:05
Post: #5
RE: can sorting ignore characters like ", ' and (
(14-11-2014 22:14)simoncn Wrote:  
(14-11-2014 19:47)adrian Wrote:  Are you sure? The implication is that if I ask it to ignore "the" then a title starting with "theater" will be sorted under "A", since it would remove the leading "the" leaving "ater". When I want to ignore double quote, there is no white space after the double quote character.

Note that I tried it, writing a sort.ignore={the,an,a,"} and it didn't seem to have any effect on the sorting of the titles starting with ". It does ignore "the", "an", and "a" as desired, so I think my setup is correct.

I checked the code and you are correct. When you ignore "the", MinimServer is looking for tag values starting with "the ", not tag values starting with "the". This is why "theater" doesn't sort under "A".

To get what you want, you will need to use custom sort values.

So does this mean I add a new tag to my database, say TitleSort, and if a particular file has a title of "Foo Bar" (with the quotes in the title) then I set the titlesort tag to Foo Bar without the double quotes. And then I do something like

tagValue = Title.sort={TitleSort,Title}


If I have to modify my database I may have to consider instead removing the troublesome characters from the titles instead. Would it make sense to have a sort option to ignore a list of characters? I can't think of a situation where somebody wants their titles sorted on leading punctuation marks.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: can sorting ignore characters like ", ' and ( - adrian - 17-11-2014 14:05

Forum Jump:


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