2151: Add sorting to team members list

Assigning this to @sjl for review and rebasing migrations to prod. I have probably done something wrong so feel free to yell at me.