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

sorting tasks #5

Open
splitbrain opened this issue Nov 3, 2011 · 7 comments
Open

sorting tasks #5

splitbrain opened this issue Nov 3, 2011 · 7 comments
Labels

Comments

@splitbrain
Copy link
Member

Name: Daniel Kurz
Email: link2 ät gmx.net
Nachricht: Sehr geehrte Damen und Herren,

ich benutze den Do-Plugin von Ihnen. Vielleicht könnten Sie eine Funktion hinzufügen, dass man die "dolist" nach Fälligkeitsdatum sortieren kann, sprich, dass die Tabelle mit offenen Tasks nach Fälligkeitsdatum sortiert wird.

@neuralyzer
Copy link

I realize that this issues was opened way in the past. However, I also wanted to sort by "Due on". I think the following change does the trick:

In the file helper.php the line

ORDER BY A.page, A.pos' . $limit);

has to be changed to

ORDER BY A.date, A.page, A.pos' . $limit);

Thanks for the plugin and thanks for DokuWiki!

@Klap-in
Copy link
Contributor

Klap-in commented Sep 1, 2014

the sortablejs and the searchtablejs plugins can workaround this...

@fpoto
Copy link

fpoto commented Aug 14, 2016

Thanks, neuralyzer. The fix is simple and works. Wish it was incorporated in the official source.

@fthommen
Copy link

fthommen commented Apr 8, 2019

This feature request is quite old. Are there plans to implement a sortability of the table or the possibility to define the sort order within the {{dolist>}} tag?

@vincentkersten
Copy link

vincentkersten commented Feb 26, 2020

Sorry for the grave-digging, but looking for the feature i found it here.
+1 for having this in the {{dolist>

@Klap-in : can you give an example on how to do this with sortablejs/searchtablejs ?
Thanks all ppl once more in cosmocode for the great work!

@vincentkersten
Copy link

ok, so found and tried sortable, but it does not work properly, unfortunately.
<sortable 3>{{dolist>meetings:?status=UNDONE}}</sortable>
Rows are (re)sortable, but the initial sort (on Due Date) is off.

@fabienli
Copy link

I had the same need, so I'm proposing this Pull Request:
#65
which is very basic for the moment.
If maintainer is interested by this, I can provide an extended version (maybe with more flexible options) and a documentation.

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

No branches or pull requests

8 participants