Make TH function fromPersistValue work with any field ordering.