Define a sorting function per component
When sorting by ‘title’, ‘keywords’, ‘signature’, ‘identifier’, ‘random’, or ‘last-modified’ with the denote-dired command (alias denote-sort-dired), Denote will internally apply a sorting function that is specific to each component (Configure what extra prompts denote-sort-dired issues).
With the exception of ‘random’ and ‘last-modified’, the sorting of file name components is subject to user configuration:
denote-sort-identifier-comparison-function
The function to sort by the file name identifier.
denote-sort-title-comparison-function
The function to sort by the file name title.
denote-sort-keywords-comparison-function
The function to sort by the file name keywords.
denote-sort-signature-comparison-function
The function to sort by the file name signature.
By default, all these user options use the same comparison function, namely string-collate-lessp. Users who have specific needs for any of those file name components can write their own sorting algorithms (Sort signatures that include Luhmann-style sequences).