You need to sign in to do that
Don't have an account?
Aruna Anala 6
How to perform sorting on object of array objects
Eg:
const obj ={
x:[
{
name:"Aruna",
Position:"3"
},
{
name:"Sri",
Position:"1"
}
]
};
How should i perform sorting based on the position in javascript?
Any body please help me with this ...
const obj ={
x:[
{
name:"Aruna",
Position:"3"
},
{
name:"Sri",
Position:"1"
}
]
};
How should i perform sorting based on the position in javascript?
Any body please help me with this ...
This might help you
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_list_sorting_sobject.htm
I hope you find the above solution helpful. If it does, please mark it as Best Answer to help others too.
try following code and check output that it's working according to you or not. Let me know if it helps you and marking it as best.
Thank you