nicola toledo
 · WWX Dev & Founder NOCODEPRO.CO

best way to sort an array of objects with two conditions

I have an array of objects and i need to sort it with two fields object.generated.apr ascending and object.generated.rewards descending both are number decimal

this is what i did

the point is that the sorting must be done at the same time and not first with one and then with the other, which would remove the first

3 replies