mcndt / obsidian-toggl-integration

A Toggl integration plugin for the popular knowledge base application Obsidian.
GNU General Public License v3.0
267 stars 19 forks source link

sorting feature? #80

Closed mmfs37 closed 2 years ago

mmfs37 commented 2 years ago

I am new so there is probably already that feature. image I currently have the problem that my daily data is not ordered by time. I would greatly appreciate it, if the datasets are ordered by their amount. So the highest percentage points at the top and the lowest at the bottom.

IF THIS IS ALREADY POSSIBLE: please tell me how to do that. I would greatly appreciate any help a simple sort desc doesn't work

IF THIS IS NOT A FEATURE YET: please add it as a feature it would immensely improve it. Seeing what I did today the most amount of time is the reason I use toggl Tracker so if that would be easier with a sorting feature, i think the programming effort would be worth it for everybody.

mcndt commented 2 years ago

Hi @mmfs37,

I'm confused because SORT ASC and SORT DESC should work on project summaries:

Example:

```toggl
summary week
sort desc
title "This week (all)"


Renders into the following, which is indeed ordered by descending total time.

![image](https://user-images.githubusercontent.com/23149353/162157590-f06b132e-be65-4959-b621-2ff21cb573f5.png)

If this doesn't work for you, can you please post the query you are using + screenshot of the resulting rendered block? Feel free to blur any personal information in that.

In the meantime, I would like to refer you to the project documentation: https://github.com/mcndt/obsidian-toggl-integration/wiki/Toggl-Query-Language-(TQL)-Reference
mmfs37 commented 2 years ago

idk what I tried when writing this question. Probably sort Time desc or somthing. Now tried it with your format and everything works. Thank you very much