How compare label field of arrayList in actionscript -


i have arraylist:

public var exampledata:ilist = new arraylist([             {title: 'data1', data:[                 {label:'it', value: 50},                 {label:'business', value: 46},                 {label:'doctor', value: 64},                 {label:'teacher', value: 85},                 {label:'engineer', value: 98}             ]} ,               {title: 'data2', data:[                 {label:'it', value: 63},                 {label:'businss', value: 46},                 {label:'doctor', value: 38},                 {label:'tea', value: 51},                 {label:'enee', value: 24}             ]} ,             {title: 'data3', data:[                 {label:'it', value: 37},                 {label:'business', value: 58},                 {label:'doctor', value: 48},                 {label:'teacher', value: 14},                 {label:'engineer', value: 28}             ]}, ]); 

i want compare label field of each array in arraylist. default, compare same first array (title:'data1'). similar below result:

public var resultdata:ilist = new arraylist([             {title: 'data1', data:[                 {label:'it', value: 50},                 {label:'business', value: 46},                 {label:'doctor', value: 64},                 {label:'teacher', value: 85},                 {label:'engineer', value: 98}             ]} ,               {title: 'data3', data:[                 {label:'it', value: 37},                 {label:'business', value: 58},                 {label:'doctor', value: 48},                 {label:'teacher', value: 14},                 {label:'engineer', value: 28}             ]}, ]); 


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -