1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-24 08:12:24 +02:00

Revert "Desktop: Regression: Fix sort tags alphabetically in side-menu (#3489)"

This reverts commit 10ff43f4f0.
This commit is contained in:
Laurent Cozic 2020-07-28 18:49:34 +01:00
parent da071a804c
commit 89e6b680a6

View File

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