measure.put("name", measureNames[i]);
measure.put("description", getMeasure(measureNames[i]).getDescription());
measure.put("colour", getMeasure(measureNames[i]).getColour());
JSONArray orderedValues = new JSONArray();
dataStore.sortRecords( dataStoreMeta.getFieldIndex(measureNames[i]) );
List orderedKpiValuesSet = dataStore.getFieldValues( dataStoreMeta.getFieldIndex(measureNames[i]) );
Iterator it = orderedKpiValuesSet.iterator();
while(it.hasNext()) {
orderedValues.put( it.next() );
}