add sort to friendship_links