MDL-46921 lib: Update get_all_user_name_fields() plus unit tests.
MDL-46921 lib: Sorting on additional fields, admin, enrolment pages.
MDL-46921 lib: behat tests for alternate name sorting.