At the moment I'm using the following to sort TypeCode
(string) in a response object.
This seems a little over kill. Is there an easier way to achieve this with one for each loop?
if (response && response.length > 0) {
var sortedArray = [];
$.each(response, function (i, dict) {
sortedArray.push(dict.TypeCode);
});
sortedArray.sort();
$.each(sortedArray, function (i, dict) {
console.log(dict);
});
}