[swift2thrift] write struct fields ordered by id

Otherwise the fields appear in an order that doesn't make much sense, and is not deterministic.