You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@piero-vic I did think of that, but setting fuzzy to false and sort to true doesn't sort the results, either.
Also, when fuzzy matches are of equal quality and --sort is true/unset, the results return in reverse-authored order. That seems quite strange.
So, I'm just not sure what --sort is supposed to do and if it's working as intended or not. At minimum, some documentation might help folks like myself understand the intended behavior.
Here is a table to summarize some testing I did.
Sort flag
Fuzzy flag
Filter behavior
Expected or unexpected?
--sort
--fuzzy
Matches are in fuzzy order, but when fuzzy match quality is equal**, results are in reverse-authored order
Unexpected
--sort
--no-fuzzy
Matches are in as-authored order
Unexpected
--no-sort
--fuzzy
Matches are in as-authored order
Expected
--no-sort
--no-fuzzy
Matches are in as-authored order
Expected
** e.g., First-letter match on words of equal length
My word list for testing:
Cow
Cat
Cry
Dad
Doo
Dog
Catty
Crybaby
Cattail
Crate
Describe the bug
gum filter --sort
returns an unexpected sort (reverse of as-authored order instead of alphabetical).To Reproduce
Steps to reproduce the behavior:
--sort
flag and with the following entries: "Cow," "Cat," "Dog," "Aog," and "Cyg"Expected behavior
--sort
flag is used.Screenshots
Desktop (please complete the following information):
Sorry if I am misunderstanding the purpose of this flag; I assumed
--sort
would sort alphabetically rather than reversing the as-authored order.The text was updated successfully, but these errors were encountered: