Added sorting to friends.py
Signed-off-by: Michael Englehorn <Michael@englehorn.com>