Here is a hack which seems to accomplish what you want:
```dataview
LIST rows.file.link
SORT file.mtime DESC
LIMIT 25
GROUP BY dateformat(file.mtime, "%%yyyy-MM-dd%% DDDD") as Date
SORT Date DESC
```
It’s utilising the sortable date format within a comment so that it doesn’t show, with the shown date format appended afterwards.
I was not quite sure why we couldn’t just use the SORT dateformat(file.mtime, "yyyy-MM-dd") DESC directly, but then I remembered that you are doing GROUP BY which moves each of the (identical) file.mtime’s into rows.file.mtime, so then I tried the following query:
```dataview
LIST rows.file.link
SORT file.mtime DESC
LIMIT 25
GROUP BY dateformat(file.mtime, "DDDD") as Date
SORT dateformat(rows.file.mtime[0], "yyyy-MM-dd") DESC
```
This lifts the first file.mtime in the group by set, and reformats it to something usable by the sort algorithm, and this does indeed work as intended. So the hack above is not needed anymore!