Adding a recursive field sorter.