Fixed the order from sell to buy