Setting the sort order for profiles.