Skip to content

Commit

Permalink
Analysis.getRanges respects order of vars
Browse files Browse the repository at this point in the history
  • Loading branch information
josephguillaume committed Mar 15, 2018
1 parent 8a6e8ae commit 2d400bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inst/www/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];}),
Expand Down

0 comments on commit 2d400bd

Please sign in to comment.