Alphabetizing Rules for Apostrophes: How to Sort Names and Words Consistently
How apostrophes affect alphabetical order in names, possessives and contractions, why sorting tools disagree, and how to keep sorted lists readable and searchable.
Names like O'Brien and D'Angelo and words like can't or children's raise the same question: does the apostrophe count when you put a list in alphabetical order? Style guides, filing systems and software often give different answers. This review explains the common conventions, shows how sorting software can produce a different order, and covers when to change the text itself versus only the way it is sorted.
Short answer: ignore the apostrophe, but decide that on purpose
The most widely used convention in English-language indexing and records filing is to ignore the apostrophe and alphabetize the letters as if it were not there. O'Brien is filed as OBrien, and can't is filed as cant. The main benefit is predictability: readers look a name up by its letters, not by its punctuation. The tradeoff is that many computer sorts do not follow this convention by default. If you rely on a tool, check that its order matches the convention you intend to follow.
A plain code-point sort, which treats the apostrophe as an ordinary character, can be acceptable when the list is only machine-read. Examples include deduplication or a technical log where nobody browses alphabetically. For any list that people scan by eye, such as an index, a directory, a bibliography or a class roster, use a consistent human-oriented rule and state it if the audience might expect a different one.
Common conventions for apostrophes in alphabetical order
- Names with an apostrophe after a prefix (O'Brien, O'Neil, D'Arcy): ignore the apostrophe and file by the letters, so O'Brien sorts as OBrien.
- Possessives (Children's Hospital, St. John's): ignore the apostrophe. Children's sorts as childrens.
- Contractions (can't, won't, o'clock): ignore the apostrophe. Can't sorts as cant, after canoe and before canter.
- Identical letters with and without an apostrophe (cant and can't, Obrien and O'Brien): conventions vary. Choose one tie-break rule and apply it everywhere. A common choice is to place the form without punctuation first.
Two related questions are separate from the apostrophe and depend on the style guide or institution. The first is whether to use letter-by-letter or word-by-word alphabetizing, which affects names with spaces such as De la Cruz. The second is whether Mc and Mac names are filed together. Names with particles, such as D'Angelo or d'Estaing, can also follow language-specific or personal conventions about which part is the sorting element. Where a person's own preference or an institutional rule is known, it should take priority over a general convention.
What changes, and what should not: the sort key versus the stored text
Alphabetizing with apostrophes involves two different operations, and they are easy to confuse:
- Sorting rule (presentation of order): the apostrophe is ignored or weighted only when comparing entries. The stored and displayed text stays exactly as written, so O'Brien still reads O'Brien.
- Character substitution (stored change): the text itself is altered. Examples are converting curly apostrophes to straight ones, stripping apostrophes, or building a separate sort-key column such as OBRIEN. The stored data has changed, and anything that searches or copies it will see the new characters.
The safer workflow is to keep the original text untouched for display and copying. When your tool cannot be configured to ignore punctuation, add a separate normalized sort key, for example lowercase with apostrophes removed. Then sort on that key. Stripping apostrophes from the visible text to force a sort order damages readability and can misrepresent people's names.
Why software may sort apostrophes differently
Two text characters are commonly used as apostrophes: the straight apostrophe (U+0027) and the typographic right single quotation mark (U+2019), often called a curly apostrophe. They look similar but are different characters, and a sort that compares raw code points treats them very differently. The straight apostrophe has a lower value than any letter, so it pulls entries forward. The curly apostrophe has a higher value than every basic Latin letter, so it pushes entries back. The following example applies these code-point values to a short list. It is a worked illustration, not output from a tested tool.
Input: Ozawa, Ochs, O'Brien (straight), Oakes
Ignore apostrophe, case-insensitive (filing convention):
Oakes
O'Brien
Ochs
Ozawa
Raw code-point sort, straight apostrophe U+0027:
O'Brien
Oakes
Ochs
Ozawa
Raw code-point sort, curly apostrophe U+2019 (O’Brien):
Oakes
Ochs
Ozawa
O’Brien
Locale-aware sorting, such as implementations of the Unicode Collation Algorithm, can treat punctuation as either significant or ignorable, depending on how the collation is configured. Because defaults differ between programs and settings, the same list can come out in different orders in a spreadsheet, a database and a word processor. No tool-specific testing was supplied for this article. Before relying on a program's alphabetical order, check its documentation or sort a short test list like the one above.
Readability and usability after copying or sharing
If only the sort order changes, the copied text is identical to the original, so copy and paste, reading order and editing are unaffected. Problems come from stored character changes and from mixed apostrophe types:
- Search and matching: a search for O'Brien typed with a straight apostrophe may not find O’Brien stored with a curly one unless the search tool normalizes them. Mixed apostrophes in one dataset can also create apparent duplicates.
- Stripped apostrophes: removing apostrophes from visible text changes how names and words read. It can also change meaning, for example its versus it's, or we'll versus well.
- Assistive technology: an apostrophe inside a word is ordinary punctuation, and keeping it does not change reading order. How a particular screen reader voices straight versus curly apostrophes, or text with apostrophes removed, was not tested for this article. Verify it with the specific screen reader and settings your audience uses if it matters.
- Sharing to other systems: when lists move between programs, the destination may re-sort them under its own rules. Do not assume the order survives export unless the destination preserves it or uses the same sort key.
A plain-text equivalent, meaning the original wording with apostrophes intact and one consistent apostrophe character, should be the version people read, copy and search. Keep any normalized sort key as a hidden helper field rather than the text people see.
Practical checklist
- Choose a rule: ignore apostrophes when alphabetizing, unless your style guide or institution specifies otherwise.
- Decide on a tie-break for entries that differ only by an apostrophe, and apply it consistently.
- Standardize on one apostrophe character in the stored data before sorting or searching.
- Keep display text unchanged. Use a separate sort key if your tool cannot ignore punctuation.
- Test your tool's sort with a short sample containing straight and curly apostrophes before trusting it on a full list.
- Respect known personal or language-specific conventions for names with particles.
Gaps in the available evidence
This overview is based on general filing conventions and on how Unicode code points compare. No product-specific documentation, measurements or test results were supplied. Behavior in any named spreadsheet, database, word processor or screen reader is therefore not asserted here and should be confirmed in that environment.