Square1;10990145 wrote:
I am sorting athlete names, many of which have nicknames. To me, even though 'Hacksaw' Jim Duggan starts with an apostrophe, my natural instinct is to start searching under "H".
Well, unless this is specifically dealt with by language rules for whatever language/country you're dealing with, I suppose this might differ for anyone viewing it. Sure, it still might, but if there are rules, follow them. Personally, I'd never start a name by a nickname. I'd rather write it as Jim "Hacksaw" Duggan. And I would expect to find him sorted under either J or D, depending on wether first or last name is presented first.
Square1;10990145 wrote:
So for the above answer of using a different sort string, do you mean adding an additional DB column of all names duplicated without apostrophes? That seems like a waste of space.
Well, deal with it while ordering then.
ORDER BY
CASE WHEN LEFT(name, 1) = ''''
THEN SUBSTRING(name, 2)
ELSE name
END