Automatically generated struct sorting.