sorting each companies orders to show the newest at the top