I am using semantic-mediawiki to store different diaries, i.e. workrelated, private things, etc. in subobjects like these:
{{#subobject:
|Has date = 2020-04-08
|Has log = work-log
|has agenda =
* Work related task done
}}
{{#subobject:
|Has date = 2020-04-08
|Has log = private-log
|has agenda =
* Something very interesting happened today
}}
{{#subobject:
|Has date = 2020-04-07
|Has log = private-log
|has agenda =
* Today nothing happened
}}
All this information can be queried with an #ask query like this, summarizing all the entries from all the log types:
{{#ask:
[[Has log::+]]
|?Has date =Date
|?Has agenda =Agenda
|format=broadtable
|sort=Has date
|order=desc
|mainlabel=-
}}
When doing it like this, in the resulting table I get one row per entry, and thus separate entries for activities that happened on the same day, like this:
Date Agenda
--------------------------------------------------------
2020-04-08 * Work related task done
--------------------------------------------------------
2020-04-08 * Something very interesting happened today
--------------------------------------------------------
2020-04-07 * Today nothing happened
Would it be possible to group these results by their date in the output, similar to the SQL GROUP BY statement, so that I would get something like this?:
Date Agenda
--------------------------------------------------------
2020-04-08 * Work related task done
* Something very interesting happened today
--------------------------------------------------------
2020-04-07 * Today nothing happened
Thank you!