fix options order in optgroup (fix #133)