Sorting compound names

Ruslan Zasukhin sunshine at public.kherson.ua
Sat Sep 18 22:05:53 CDT 2004


On 9/18/04 8:22 PM, "jda" <jda at his.com> wrote:

>   :->
> 
> Well, I didn't point out English is not the only language that uses
> strict alphabetical sorts (and that it should be "that horrify", not
> "which horrify", but...).
> 
> I see that EndNote allows users to specify words that are *not*
> included in name sorts (things like "van", "von", etc.). They also
> let you specify words that should be ignored at the beginning of a
> title for sorts (words like "The", "A", "An", etc.).
> 
> This seems to be the sort of thing that would be acceptable. I can of
> course get the names in each record, strip out the specified "words",
> and then do a sort (in RB), but this will obviously take a
> substantial amount of effort and be much slower than a method in
> Valentina. So, I'm still wondering if it is possible to construct
> such a method (I'm posting to the betas list, BTW, because I gather
> that methods will be more flexible in 2.x).

What about this:

You make 2 fields:

    prefix
    LastName


If syrname is 

    von Something

You split it in 2 fields.
If there is no name then prefix is empty.

So when you show to user you build string using 2 fields.

And you use the second filed to sort.


In case exists also suffixes, then you create third field.




-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina-beta mailing list