Added sorting by frequency, moved values-option out of range spec, further experimentation on setting up query options.