If the two elements have the same property value on which we sort the array then how javascript order them i mean if you have this array for example :
let array = [{id:0,name:"sam",age:"20"},
{id:0,name:"john",age:"21"},
{id:1,name:"fred",age:"30"}]
let's suppose that i want to sort this array by id ascending then how can i know which one will appear first :
{id:0,name:"sam",age:"20"}
OR
{id:0,name:"john",age:"21"}