Almost sorted width