Further work on field sorting.