Due to Pivot the Columns order got Changed, Since my datashape as Field name in order, I have Created an Datashape based empty INFOTABLE, then I merged it with the INFOTABLE who columns were not in Order, That solved my Issue.
//Create INFOTABLE based on DataShape
var params_forOrder = {
infoTableName : "InfoTable",
dataShapeName : "datashapeName" //Since DataShape has the Value Fields in Order, new Table will be in Ordered Columns
};
var table2 = Resources["InfoTableFunctions"].CreateInfoTableFromDataShape(params_forOrder);
table2.AddField({ name: "timestamp", baseType: "DATETIME" });
//table1 has unordered table
var params_Merge = {
t1: table2, // Empty INFOTABLE
t2: table1 // Unordered INFOTABLE
};
// result: INFOTABLE
var result = Resources["InfoTableFunctions"].Union(params_Merge);