MDL-46921 lib: Allow sorting on additional fields admin and enrolment pages.