Issue description
When using the RecordBuilder#updateEntryByName method, the order of the entries is not preserved: the renamed entry is moved to the end of the entry list.
Analysis & fix
After analysis, this is caused by the fact that one do not update the inner orderState attribute which is responsible for this.