mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Mobile: Show the used tags first in the tagging dialog (#5315)
This commit is contained in:
parent
189f9d1091
commit
d0313585be
@ -109,7 +109,9 @@ class NoteTagsDialogComponent extends React.Component {
|
||||
});
|
||||
|
||||
tagListData.sort((a, b) => {
|
||||
return naturalCompare.caseInsensitive(a.title, b.title);
|
||||
if (a.selected === b.selected) return naturalCompare.caseInsensitive(a.title, b.title);
|
||||
else if (b.selected === true) return 1;
|
||||
else return -1;
|
||||
});
|
||||
|
||||
this.setState({ tagListData: tagListData });
|
||||
|
Loading…
Reference in New Issue
Block a user