Populate a Dropdown List with all dimensions from the underlying model and sort them alpha-numerically by Description

var result1 = Table_1.getDataSource().getDimensions();
var a = [""];
for (var i = 0; i<result1.length;i++)                
{ a[i] = result1[i].description;}
a.sort();

{for (var d=0;d<a.length;d++)
          {Dropdown_1.addItem(a[d]);
                                                               }}
Code language: JavaScript (javascript)
Scroll to Top