added groupby

Signed-off-by: Bruno Perner <b.perner@gmx.de>