L
laredotornado
Hi,
If I have an array of JSON data, where each item in the array has the
same object structure, what is the easiest way to sort the elements in
the array based off one of the object's attributes?
For example, if my array were
var featureData = [{name:'BCD',description:'aaa'},
{name:'aaa',description:'bbb'},{name:'ccc',description:'wewfwef'}];
How could I sort the array based off the elements in the "name"
attribute?
Thanks, - Dave
If I have an array of JSON data, where each item in the array has the
same object structure, what is the easiest way to sort the elements in
the array based off one of the object's attributes?
For example, if my array were
var featureData = [{name:'BCD',description:'aaa'},
{name:'aaa',description:'bbb'},{name:'ccc',description:'wewfwef'}];
How could I sort the array based off the elements in the "name"
attribute?
Thanks, - Dave