Group by lastmod?

I would like to be able to group by lastmod as follows:

`

{{ .Title }}

{{ range .Data.Pages.GroupByLastmod "January 2006" }}

{{ .Key }}

    {{ range .Pages.ByLastmod.Reverse }} {{ .Render "li"}} {{ end }}
{{ end }}
`

Currently not possible.