Fixed a bug that caused domain values to sometimes be displayed out of order when missing codes were set, fixes #155.