You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-12 22:57:38 +02:00
Desktop: Change template prompt to sans and sort templates (#1806)
* Change template prompt to sans and sort templates * Sort templates by filename to ensure order
This commit is contained in:
committed by
Laurent Cozic
parent
8e32957111
commit
9a4f4cbb65
@ -41,6 +41,10 @@ TemplateUtils.loadTemplates = async function(filePath) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
// Make sure templates are always in the same order
|
||||
// sensitivity ensures that the sort will ignore case
|
||||
files.sort((a, b) => { return a.path.localeCompare(b.path, undefined, {sensitivity: 'accent'}); });
|
||||
|
||||
files.forEach(async file => {
|
||||
if (file.path.endsWith('.md')) {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user