Multiple consecutive sorts are handled