I'm using _values
to add completion to a custom zsh command, but unfortunately, zsh ignores the order in which I pass the values and sorts in reverse order of what I what (I want sort -rn
, basically).
Is there anyway to force it to respect the order I've passed, or if not, to somehow modify the sorting mechanism used for that specific command (i.e., I don't want to change the order of all completions, just this specific one.
Example:
_values 'my completions' foo bar
shows bar
before foo
, but I want foo
before bar
.