1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

All: Allow sorting notes by various fields

This commit is contained in:
Laurent Cozic
2018-02-22 18:58:15 +00:00
parent 74d255c056
commit 8a96cf3434
13 changed files with 252 additions and 51 deletions

View File

@ -201,4 +201,9 @@ function padLeft(string, length, padString) {
return string;
}
module.exports = { removeDiacritics, escapeFilename, wrap, splitCommandString, padLeft };
function toTitleCase(string) {
if (!string) return string;
return string.charAt(0).toUpperCase() + string.slice(1);
}
module.exports = { removeDiacritics, escapeFilename, wrap, splitCommandString, padLeft, toTitleCase };