Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task list order #7

Open
pfsmorigo opened this issue Jan 23, 2024 · 2 comments
Open

Task list order #7

pfsmorigo opened this issue Jan 23, 2024 · 2 comments

Comments

@pfsmorigo
Copy link

pfsmorigo commented Jan 23, 2024

The lists seems to be in some random order. Is there a way to show them respecting the correct order?

@jupblb
Copy link
Collaborator

jupblb commented Feb 7, 2024

The task lists are currently sorted lexicographically by title:

task_lists.sort(key=lambda tl: tl.title)

What do you mean by "correct order"? I imagine we could just not modify the server response1 and make sorting a configurable option.

Footnotes

  1. Which is the same as sorting by task list id, I think.

@hakan-demirli
Copy link

hakan-demirli commented Sep 28, 2024

I think the correct order would be the order displayed on the Google Tasks GUI.

image

You can sort them by dragging one of the lists with your mouse. In this example My Tasks is above the AnotherList however it is not in gtasks-md.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants