Adds sorting of friends