1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Desktop: Change localeCompare functiion for tags (#1811)

* change localeCompare functin for tags

* Fix spacing
This commit is contained in:
Caleb John 2019-08-29 10:36:53 -06:00 committed by Laurent Cozic
parent ac4986b620
commit 415e7b84da

View File

@ -134,7 +134,9 @@ class MainScreenComponent extends React.Component {
return { value: a.id, label: a.title };
})
.sort((a, b) => {
return a.label.localeCompare(b.label);
// sensitivity accent will treat accented characters as differemt
// but treats caps as equal
return a.label.localeCompare(b.label, undefined, {sensitivity: 'accent'});
});
const allTags = await Tag.allWithNotes();
const tagSuggestions = allTags.map(a => {