> The algorithm I'm using is pretty simple right now.
> goes something like:
> 1) split the surname into strings using spaces as
> 2) if the split name has more than one part, check
> the first part against a list of know prefixes
> 3) If the prefix matches, use the second part of
> the string as the sort string, otherwise use the
> surname as the sort string
This algorithm may not fully address some of the
Portuguese needs. Consider the following examples:
a) Marcelo de Oliveira
b) Alfredo das Neves
c) Luiz Francisco da Silva Brandao
The algorithm works well in the majority of the cases,
such as (a). However, there is a good chance that a
family member of (b) would like to have "das Neves" as
the sort string.
On letter (c), above, the family name could be either
"Brandao" or "Silva Brandao".
Perhaps, as other people have pointed out, we should
allow the user to determine what part of the name will
be used for sorting.
Some other prefixes needed on the list are:
da, das, do, dos
Post your free ad now! http://personals.yahoo.ca