Re: How do I sort Mac and Mc together alphabetically?

On Mon, 26 Jun 2006 01:09:48 -0600, John Vinson
<jvinson@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

On Mon, 26 Jun 2006 08:02:26 +0200, Steve Hayes
<hayesmstw@xxxxxxxxxxx> wrote:

McFarlane to follow immediately after MacFarlane, McLeod with MacLeod

McLeod, Paul
MacLeod, Peter
McLeod, Petronella
MacLeod, Pricsilla

Please sort the following names into correct order then:


That quibble aside: use this calculated field for sorting.

SortName: IIF(Left([LastName], 3) = "Mac", "Mc" & Mid([LastName], 4),

This will sort all the Mc and all the Mac names as if they were Mc but
display them as entered. Note that non-patronymic names which happen
to begin with the letters "Mac" will be sorted incorrectly, but that's
what you're asking for.

It wasn't what I was asking for, I was simply clarifying what someone else was
asking for.

I think it would probably be better to sort Mc under Mac for the reasons you
mentioned. There are several names beginning with Mac that are not Scottish or
Irish patronymics, but names in their own right -- Machanic, Machin and the
like. These should not be sorted as Mc (and how does a program tell the
difference, unless you specify the the letter after c must be uppercase -- but
then what do you so with Macmillan, as in the publishers? There are not many
other names that begin with Mc.

Steve Hayes from Tshwane, South Africa
E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk

Relevant Pages

  • Re: Sort collating sequence
    ... To paraphrase a former leader of the free world, define "sorting correctly". ... is represented by the character coding scheme, generally ASCII. ... the underscore falls between the upper and lowercase letters. ... The sort utility on my Linux box sorts in that same manner. ...
  • Re: Just venting (totally OT)
    ... It's the sort of thing to fit in with something else, ... There's a Mac version of that. ... Unless Steve is completely insane, ...
  • [Long] New business: many questions (mostly on topic...)
    ... difference between a static IP and the runny sort? ... Can anyone recommend a simple project management package for the Mac? ... What's the most effective way of sharing my HP Officejet 5610 all-in-one ... Thanks very much indeed for any and all advice. ...
  • Re: Sort collating sequence
    ... It is sorting correctly. ... It is not ASCII. ... The system's default behavior is to sort punctuation first, followed by numbers and letters. ...
  • Re: If this interests someone in the VMS land to broaden his expertise to non VMS systems
    ... The application needs to be sort of HIPPA-compliant in the sense that the ... I clearly have a different definition of mandatory access control (MAC), ... multiple levels or multiple compartments within the database, ... what sort of security and auditing you've set up around the database. ...