UNPKG

@technobuddha/library

Version:
17 lines (16 loc) 534 B
declare type Options = { /** Ignore a leading quote (") */ ignoreQuotes?: boolean; /** move article (a, an, the) to the end of the string */ moveArticles?: boolean; }; /** * Convert a string into a sortable string * * @remarks for example "The Beatles" becomes "Beatles, The" * @param input string to convert * @param __namedParameters see {@link Options} * @return sortable string */ export declare function sortOrder(input: string, { ignoreQuotes, moveArticles }?: Options): string; export default sortOrder;