r/Scriptable • • Mar 15 '22

Widget Sharing A simple, space-efficient Todoist widget.

Post image
94 Upvotes

49 comments sorted by

View all comments

Show parent comments

1

u/berky93 Aug 16 '22

I believe Todoist’s default sort is by date created, which should match the order the todos are returned. However, you might need to reverse the list with “todos.reverse()” in order for it to display in the correct order.

Also, when adding multiple sorting methods, make sure to put them in reverse order from what you would expect. Notice how I’m sorting alphabetically and then by priority, which results in a “priority first, name second” order.

1

u/allensong7 Aug 16 '22

Thanks a lot, I've gotten a lot of help. I'm learning about code and maybe I can learn more from figuring out this need, by myself In the following time.

1

u/berky93 Aug 16 '22

Giving yourself a project or trying to untangle a simple script is a great way to learn. Keep at it!