Added custom adapter for grouping entries

Fixes #2.