first activity in sorting