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:
parent
ac4986b620
commit
415e7b84da
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user