Sort struct dockeys

Please compare the value first. In the vast majority of cases this will be the delta, and it'll never reach the more complex field-comparing logic.