[Delivers #52313731] Fix Add Related Agent button not working in Firefox

Also enable sorting for Related Agents.