Added sorting capabilities to the friends list