Step4. Sort fireflies corresponding to their fitness (light intensity).