Sort struct dockeys

Needs to take into account whether the field is exported or not.