MMM-GoogleTasks icon indicating copy to clipboard operation
MMM-GoogleTasks copied to clipboard

Set sorting

Open Clubjack1 opened this issue 5 years ago • 13 comments

My Googletasks Module Shows the tasks in wrong order. Next tasks are at the end of the List.

Clubjack1 avatar Dec 31 '19 14:12 Clubjack1

Quick reply on the fly. Check out my branch that have added a simple sort.

gubbsjuk avatar Dec 31 '19 15:12 gubbsjuk

Quick reply on the fly. Check out my branch that have added a simple sort.

You meant the children/parent sort? Can i copy that or what must i change for sort by date?

Clubjack1 avatar Dec 31 '19 17:12 Clubjack1

Its atleast children parent sorting. Cant remember if it sorts by date aswell. That should be fairly simple to implement.

I can look into it over the new years.

gubbsjuk avatar Dec 31 '19 17:12 gubbsjuk

Its atleast children parent sorting. Cant remember if it sorts by date aswell. That should be fairly simple to implement.

I can look into it over the new years.

That would be really great. 👍🏽

Clubjack1 avatar Dec 31 '19 19:12 Clubjack1

Any word on this fix?

tcginc2011 avatar Jan 31 '20 05:01 tcginc2011

found fix sorry

tcginc2011 avatar Jan 31 '20 05:01 tcginc2011

Something New here?

Clubjack1 avatar Feb 10 '20 16:02 Clubjack1

Sorry all, havent gotten around to this yet... Hectic...

I imagine it should be rather easy though. Try looking into the built in sorting function in JS. I imagine that whould be the easiest and most efficent way of doing this.

Sorting parents first, and then adding the children in the order behind the respective parent.

gubbsjuk avatar Feb 10 '20 16:02 gubbsjuk

No Problem.

I dont need sorting by parent andere children. I want to sort it by date.

Clubjack1 avatar Feb 10 '20 16:02 Clubjack1

@Clubjack1 Suddenly remebered this... botched something together quickly and updated my github repo. Currently not able to test it though, so use at your own risk... :')

gubbsjuk avatar Apr 21 '20 23:04 gubbsjuk

Appreciate the work @gubbsjuk! I can't seem to get it to sort properly, still doesn't follow the due date it seems.

esmoyer avatar Apr 26 '20 22:04 esmoyer

Sorry didn't specify this @esmoyer. You need to set a tag "ordering" in the config file to either 'dateAsc' or 'dateDesc'

ordering: "dateAsc" is the correct syntax I belive.

Did some minor testing and it seemed to work OK on my end. Let me know if you have further troubles.

gubbsjuk avatar Apr 26 '20 22:04 gubbsjuk

No worries. When looking at the code i did note that but it still didn't seem to work. I'll do some more testing then. Thanks!

Sent from Android


From: gubbsjuk [email protected] Sent: Sunday, April 26, 2020 5:11 PM To: jgauth/MMM-GoogleTasks Cc: smoysauce; Mention Subject: Re: [jgauth/MMM-GoogleTasks] Set sorting (#12)

Sorry didn't specify this @esmoyer. You need to set a tag "ordering" in the config file to either 'dateAsc' or 'dateDesc'

ordering: "dateAsc" is the correct syntax I belive.

Did some minor testing and it seemed to work OK on my end. Let me know if you have further troubles.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

esmoyer avatar Apr 26 '20 22:04 esmoyer