mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Revert "Desktop: Regression: Fix sort tags alphabetically in side-menu (#3489)"
This reverts commit 10ff43f4f0
.
This commit is contained in:
parent
da071a804c
commit
89e6b680a6
@ -1,6 +1,5 @@
|
||||
const BaseItem = require('lib/models/BaseItem');
|
||||
const BaseModel = require('lib/BaseModel');
|
||||
const Tag = require('lib/models/Tag');
|
||||
|
||||
const shared = {};
|
||||
|
||||
@ -66,13 +65,6 @@ shared.renderFolders = function(props, renderItem) {
|
||||
};
|
||||
|
||||
shared.renderTags = function(props, renderItem) {
|
||||
props = Object.assign({}, props);
|
||||
const tags = props.tags.slice();
|
||||
// Sort tags alphabetically
|
||||
tags.sort((a, b) => {
|
||||
return Tag.getCachedFullTitle(a.id) < Tag.getCachedFullTitle(b.id) ? -1 : 1;
|
||||
});
|
||||
props.tags = tags;
|
||||
return renderItemsRecursive_(props, renderItem, [], '', 0, [], BaseModel.TYPE_TAG);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user