I have some troubles with the order of value map. I don't understand why it is re-sorting it based on the keys of the map.
// This my code
isc.DynamicForm.create({
width: 550,
wrapItemTitles:false,
fields: [{
name: "shipTo", title: "Ship to", type: "select",
hint: "Overnight shipping available for countries in bold",
wrapHintText: false,
valueMap: {
"01" : "1",
"02" : "2",
"03" : "3",
"04" : "4",
"05" : "5",
"90" : "6",
"95" : "7"
},
imageURLPrefix:"flags/16/",
imageURLSuffix:".png"
}]
});
But this is output: 6, 7, 1, 2, 3, 4, 5. it is re-sorting :((
How can i control it? Expected output: 1 ,2 , 3 ,4 ,5 ,6, 7
// This my code
isc.DynamicForm.create({
width: 550,
wrapItemTitles:false,
fields: [{
name: "shipTo", title: "Ship to", type: "select",
hint: "Overnight shipping available for countries in bold",
wrapHintText: false,
valueMap: {
"01" : "1",
"02" : "2",
"03" : "3",
"04" : "4",
"05" : "5",
"90" : "6",
"95" : "7"
},
imageURLPrefix:"flags/16/",
imageURLSuffix:".png"
}]
});
But this is output: 6, 7, 1, 2, 3, 4, 5. it is re-sorting :((
How can i control it? Expected output: 1 ,2 , 3 ,4 ,5 ,6, 7
Comment