Fixed sort order bug in gtopts.