Bibliography Sorter
Sort bibliography entries alphabetically by author last name.
Entry detection and sort key extraction
Entries are separated by one or more blank lines — the same convention used by APA, MLA, Chicago, and most word-processor bibliography exports. The sort key is extracted from the first line of each entry using a regex that captures the leading author name up to the first comma, period, or parenthesis. Comparison uses localeCompare with sensitivity: 'base', so accented characters (García, Müller, Achebe) sort alongside their unaccented equivalents rather than collating at the end of the alphabet.
| Format | First-line pattern | Extracted key |
|---|---|---|
| APA | Zweig, S. (1942). ... | Zweig |
| MLA | Woolf, Virginia. ... | Woolf |
| Chicago | García Márquez, Gabriel. ... | García Márquez |
| Numbered (e.g. 1. Author) | Digit prefix not in key regex | May extract number — sort manually |
What the sorter does not handle
Numbered reference lists (Vancouver style, IEEE) where entries start with a numeral are not suited for this tool — the numeral will be extracted as the sort key. Entries with inverted author order already applied (Last, First) sort correctly; entries written as First Last (no comma) will sort on the first name, not the family name. The sorter does not renumber entries; after sorting, any in-text citation numbers will need to be updated manually.
Frequently Asked Questions
Your files stay on your computer. Dad promised.