diff --git a/javascripts/projectsService.js b/javascripts/projectsService.js index 41e43cdce35..99ff183c4f0 100644 --- a/javascripts/projectsService.js +++ b/javascripts/projectsService.js @@ -275,7 +275,17 @@ define(['underscore', 'tag-builder', 'project-ordering'], ( }; this.getLabels = function () { - return _.sortBy(labelsMap, (entry) => entry.name.toLowerCase()); + projectLabelsArray = _.sortBy(labelsMap, (entry) => + entry.name.toLowerCase() + ); + + // iterate through the array and push words starting with non-letters (symbols or numbers) to the end of the array. + projectLabelsArray.forEach((label, index) => { + if (!label.name[0].match(/[a-zA-Z]/i)) { + projectLabelsArray.push(projectLabelsArray.splice(index, 1, 0).pop()); + } + }); + return projectLabelsArray; }; this.getPopularTags = function (popularTagCount) {