I'm mapping thought an array and i'm getting inside this array multiple object that look like this
{time: 14, pokemon: true},
{time: 12, pokemon: true}
Here is my map:
cont mapObject = arr.map(x => x)
Is it anyway to sort the objects by ascending time ?? I'm not really sure how to place a sort function