I was wondering if there is a way to order data coming from an api? I'm getting a list of items from an api and I want to push the items that contains a specific key in its object at the end of the list, and just leave the items that doesn't contain that key as they are, is there a way that I can do that from the client side?
{this.state.items.map(i => <Item key={i.id} button={this.state.button} id={i.id} name={i.name} price={i.price} quantity={i.quantity} />)}