I am using YUI2 datatable. consider the following scenario.
var myColumnDefs = [
{ key:"A", label:"A", sortable:true},
{ key:"C", label:"C", sortable:true}
];
// i want to add this column after A.
myColumnDefs.push({ key:'B',label:'B'});
this code will generate columns A,C,B but i want it to be A,B,C. how can i do it?