var obj = this;
var columns = [];
if (!prefix) { prefix = ''; }
+ var sort_headers = false;
try {
// requires the dojo library fieldmapper.autoIDL
if (typeof fieldmapper == 'undefined') { throw 'fieldmapper undefined'; }
def.remove_me = true;
}
}
+ if (column_extras['*']['sort_headers']) {
+ sort_headers = true;
+ }
}
if (column_extras[col_id]) {
for (var attr in column_extras[col_id]) {
if (column_extras[col_id]['keep_me']) {
def.remove_me = false;
}
+ if (column_extras[col_id]['remove_me']) {
+ def.remove_me = true;
+ }
if (column_extras[col_id]['label_prefix']) {
def.label = column_extras[col_id]['label_prefix'] + def.label;
}
}
}
+ if (sort_headers) {
+ columns.sort(
+ function(a,b) {
+ if (a.label > b.label) { return 1; }
+ if (a.label < b.label) { return -1; }
+ return 0;
+ }
+ );
+ }
+
} catch(E) {
obj.error.standard_unexpected_error_alert('fm_columns()',E);
}