Skip to main content

alphabetic_author

Function alphabetic_author 

Source
pub(crate) fn alphabetic_author(author: &str) -> &str
Expand description

Returns the sort key for an author string by extracting the last word of the first name in a comma-separated list.

Used by both Info::alphabetic_author and the DB sort-rank layer so that the extraction logic lives in exactly one place.