Skip to content

Commit

Permalink
[TASK] Sort tags in „View Upgrade Documentation“ by name
Browse files Browse the repository at this point in the history
Resolves: #84217
Releases: master
Change-Id: Icd5e917f0b3d8fcd3f0a9ab5f9f763f87189f3a9
Reviewed-on: https://review.typo3.org/56113
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benjamin Kott <benjamin.kott@outlook.com>
Tested-by: Benjamin Kott <benjamin.kott@outlook.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
andreaskienast authored and lolli42 committed Mar 12, 2018
1 parent 0266fb8 commit cb1e3c4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ define([
$(this.selectorRestFileItem).each(function() {
tagString += $(this).data('item-tags') + ',';
});
var tagArray = this.trimExplodeAndUnique(',', tagString);
var tagArray = this.trimExplodeAndUnique(',', tagString).sort(function(a, b) {
// Sort case-insensitive by name
return a.toLowerCase().localeCompare(b.toLowerCase());
});
$.each(tagArray, function(i, tag) {
self.chosenField.append('<option>' + tag + '</option>');
});
Expand Down

0 comments on commit cb1e3c4

Please sign in to comment.