Changed sortOrder to String for persistence.