ankane / hightop

A nice shortcut for group count queries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Case insensitive keys?

johnroa opened this issue · comments

First off, great gem!

Second, it seems grouping is currently case sensitive:

{ "This Is A Key"=>57, "this is a key"=>6, "etc"=>6 }

Possible to include an option to ignore case?

Thanks John. You can do:

Visit.top("LOWER(referring_domain)") # or
Visit.top("UPPER(referring_domain)")

which is less typing (and more explicit) than something like case_sensitive: false.