Cleaned and Pushed grouping of history results code at the repo
These are the change sets https://bitbucket.org/sinha/moin2/changeset/58a29a7fd016 and this is for the new macro added https://bitbucket.org/sinha/moin2/changeset/08e3faf4c020 .
Read the bookmark functionality implementation of moin 1.9, will use similar idea in implementing it here.
Screen Shot for the grouping,