Test for sorting custom fields