bug fix: the ordering of field values is now preserved regardless of record order