fix sort order of options

• make sure that only numeric values or an empty string are set