Sorting the fields as they are sorted in the admin panel