Gets friend list and adds sort functionality