1
0
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:
JackGruber 2021-08-18 13:06:58 +02:00 committed by GitHub
parent 189f9d1091
commit d0313585be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 });