Acquiring friends and sorting should be done a separate thread.