Use Ruby method for grouping

TODO: I want to use the groonga method for grouping.