support JSONField.ordinal