Hi,
I think ability to define new words or letters to ignore would be a good improvement for this module. For example I want to ignore Dr. and Prof. in front of people's name:
Dr. Sam Brown
George White
Prof. All Doe
would be:
Prof. All Doe
George White
Dr. Sam Brown
Comments
Comment #1
generalredneckI agree, and this is on my road map of things to include. I'll keep you up to date with my status on this feature through this issue.
Comment #2
generalredneckI'm looking at this feature today... and I'm thinking about it.
I'm looking at a 2 tier process for defining words that you don't want to include.
First is a global list. It would be located in the Administration section of View Natural Sort. The problem I can't make up my mind on is, do I make this change all views... including those that already have been initialized or do I make it only change the new ones. I could see use cases for both scenarios and believe that this would be a back and forth issue.
Second is a sort field specific list. When you go to do your sort, you would have an option:

This will change the data structure a bit on the backend, but I'm not sure it will be a big issue.
This feature can be used in both Drupal 6 and Drupal 7
Comment #3
generalredneckActually I take back the last comment:
I foresee the "per-view" option being more difficult than I originally planned, mostly because the "words removed" are all process ahead of time. I assume I was thinking I was handling the word removal at the time of the query, which isn't so. Doing it at the time of the query would actually slow the process down alot and be database specific.
Also as nodes are added, I would have to check to see what views they would be associated with. This would add alot of overhead to node_save which I'm not sure I'm willing to do.
The global one would be EASY to implement and may do that for now until I can come up with a better way to structure everything to make the second possible.
The other possibility is to treat different Content Types differently. For instance, If I had a content type that was "Book Title" and another content type that was "People", then I could make Book Title only remove A, An, and The from the beginning of the title, vs. People where Prof. Dr. and Mr. would be removed.
Comment #4
adam_b commentedGlobal would be fine for me at present - though it's true that in theory per-view would be more flexible.
Comment #5
generalredneckI've picked this issue back up... sorry about the long wait...
I've got it about halfway done. I'll keep you up to date on what's going down. Global configuration is the way to go until I get other fields implemented.
Comment #6
generalredneckK, I got something up for D7. If yall want to take a look and test it out more so than I have... that would be swell. I'll have something up for D6 soon.
New settings are under Configure->Views Natural Sort->Configure Word Removal Lists
Comment #7
generalredneckD6 version of the above patch. Ditto on this one... If yall wouldn't mind testing it some and letting me know how it goes... I would appreciate it.
Comment #8
generalredneckThis Feature is now designated 6.x-1.3 and 7.x-1.3
Congratulations!