sorted list before acquiring mean