Sort relation suggestions most recent first.
Clean up and test relation sorting code.
Merge pull request #2052 from asolove/sort-relations

Sort relation suggestions most recent first