diff --git a/source/js/VMM.Timeline.TimeNav.js b/source/js/VMM.Timeline.TimeNav.js index 491829f..07d79e8 100644 --- a/source/js/VMM.Timeline.TimeNav.js +++ b/source/js/VMM.Timeline.TimeNav.js @@ -1545,6 +1545,9 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.TimeNav == 'undefin // CREATE TAGS tags = VMM.Util.deDupeArray(tags); + + config.tagSortFunction(tags); + if (tags.length > 3) { config.nav.rows.current = config.nav.rows.half; } else { diff --git a/source/js/VMM.Timeline.js b/source/js/VMM.Timeline.js index f75b4d0..1b1022a 100755 --- a/source/js/VMM.Timeline.js +++ b/source/js/VMM.Timeline.js @@ -135,7 +135,12 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') { ease: "easeInOutExpo", duration: 1000, gmap_key: "", - language: VMM.Language + language: VMM.Language, + tagSortFunction: function (arr) { + arr.sort(function (a, b) { + return a.localeCompare(b); + }) + } }; if ( w != null && w != "") {