I have an array of objects like:-
myobject[
{name:'Zeta' ,count:1},
{name:'Nei',count:20},
{name:'tri',count:3)
];
I want object with the name tri to appear as first object instead of third. how can i do that?
I have an array of objects like:-
myobject[
{name:'Zeta' ,count:1},
{name:'Nei',count:20},
{name:'tri',count:3)
];
I want object with the name tri to appear as first object instead of third. how can i do that?