X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2Fmonitoring_params%2FmonitoringParamComponents.js;h=ab12fcde621ca99ac5e503c2216d82c58eb778cd;hp=2990d18a4e78f22a57d7346acd09bd560bd1611c;hb=ad321ed2e73c48cd35812dfd4c64d54e84704e30;hpb=d58f65f890e6fb214c9eb03b99fcd432de39b2ef diff --git a/skyquake/plugins/launchpad/src/monitoring_params/monitoringParamComponents.js b/skyquake/plugins/launchpad/src/monitoring_params/monitoringParamComponents.js index 2990d18a4..ab12fcde6 100644 --- a/skyquake/plugins/launchpad/src/monitoring_params/monitoringParamComponents.js +++ b/skyquake/plugins/launchpad/src/monitoring_params/monitoringParamComponents.js @@ -1,6 +1,6 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -117,7 +117,9 @@ export default function parseCardObj(obj_list, type) { } ret.push(html) } - return ret.sort(function(a, b){ - return (a.title > b.title) ? -1 : 1; - }); + return ret.sort(function(a,b) { + var titleA = a.title && a.title.toUpperCase(); + var titleB = b.title && b.title.toUpperCase(); + return (titleA < titleB) ? -1 : (titleA > titleB) ? 1 : 0; + }); }