diff --git a/inst/www/model.js b/inst/www/model.js index 1ac4ebb..eb5527d 100644 --- a/inst/www/model.js +++ b/inst/www/model.js @@ -165,6 +165,7 @@ var Analysis = Backbone.Model.extend({ // Return appropriate elements return($.inArray(e[0],vars)>-1); }); + ranges.sort((e) => $.inArray(e[0],vars)); if(asArray){ return(ranges); } ranges = { Variable:ranges.map(function(x){return x[0];}),