# Change default sort for dashboard tasks

**URL:** <https://kanboard.discourse.group/t/change-default-sort-for-dashboard-tasks/2663>\
**Category:** Questions\
**Created:** [March 3, 2023, 3:22pm UTC](https://kanboard.discourse.group/t/change-default-sort-for-dashboard-tasks/2663 "2023-03-03T15:22:25Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tagirijus](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/tagirijus/32/1528_2.png) [@Tagirijus](https://kanboard.discourse.group/u/Tagirijus)\
**Post date:** [March 3, 2023, 3:22pm UTC](https://kanboard.discourse.group/t/change-default-sort-for-dashboard-tasks/2663/1 "2023-03-03T15:22:25Z")

</div>

Hi there,

new here with Kanboard and in this forum. Previously I did my task management _(self-employed music composer here)_ with _Mantis Bug Tracker_ and wrote some plugins ot better suite my workflow. Now I was looking for something else and found Kanboard. Quite nice so far; also with all those available plugins!

Yet something still is a tiny bit annoying to me: the default **sorting** for the tasks on the dashboard. You can change the sorting temporarily with a click, but it won’t remember the last chosen sorting option after e.g. visiting the dashboard again another day (unless when visited via the URI with the GET variables).

So here are my questions

1. Is there any plugin _(I might have missed)_ or other way for changing the defaul **dashboard** tasks sorting behaviour?
2. Before I start digging deep into the plugin development: would it be hard to make such a plugin? I am familiar with PHP, JS, CSS, etc. - yet before spending too much time _(I actually not really have anyway, haha)_ digging into the Kanboard plugin API etc. _(at first sight I did not find the plugin docs too helpful yet)_ I first wanted to ask, if this might be a stupid idea at all. 😃

Thanks for any help here!

---

<div class="post-metadata">

**Author:** ![FxFx](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/fxfx/32/1358_2.png) [@FxFx](https://kanboard.discourse.group/u/FxFx)\
**Post date:** [March 3, 2023, 3:34pm UTC](https://kanboard.discourse.group/t/change-default-sort-for-dashboard-tasks/2663/2 "2023-03-03T15:34:05Z")

</div>

Hmmm. Normaly the arranged sorting is preserved. But i’am unsure if this is user based…

There is a plugin which sorts the whole board on due dates, creation dates or “default” order.

Maybe that could be what you are looking for. Unsure.

If this helps, do not takle the release version. Download the latest code…

> **[GitHub - JustFxDev/kanboard-duedate: Enable due date sorting in columns for...](https://github.com/JustFxDev/kanboard-duedate)**
>
> Enable due date sorting in columns for Kanboard. Contribute to JustFxDev/kanboard-duedate development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Tagirijus](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/tagirijus/32/1528_2.png) [@Tagirijus](https://kanboard.discourse.group/u/Tagirijus)\
**Post date:** [March 3, 2023, 3:37pm UTC](https://kanboard.discourse.group/t/change-default-sort-for-dashboard-tasks/2663/3 "2023-03-03T15:37:39Z")

</div>

Hey FxFx! Thanks for your reply. I am indeed talking about the **dashboard** of Kanboard, not the board-view of a project! I already use the kanboard-duedate Script - this works nice. And on the board-view the sorting behaviour is indeed saved other wise. Unfortunately not on the dashboard.

Ps: Are you the author of the duedate-sorting plugin? Than thank you! I can sense it will become quite handy. (=

---

<div class="post-metadata">

**Author:** ![FxFx](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/fxfx/32/1358_2.png) [@FxFx](https://kanboard.discourse.group/u/FxFx)\
**Post date:** [March 3, 2023, 3:40pm UTC](https://kanboard.discourse.group/t/change-default-sort-for-dashboard-tasks/2663/4 "2023-03-03T15:40:18Z")

</div>

I’am not the Author of it. I did the take over and changed some very minor things and i try to keep the maintenance. Because i like and use it 😄

Maybe you can provide a screen shot to explain what’s the issue for your needs? I’am not sure if i understand it…

---

<div class="post-metadata">

**Author:** ![Tagirijus](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/tagirijus/32/1528_2.png) [@Tagirijus](https://kanboard.discourse.group/u/Tagirijus)\
**Post date:** [March 3, 2023, 3:47pm UTC](https://kanboard.discourse.group/t/change-default-sort-for-dashboard-tasks/2663/5 "2023-03-03T15:47:13Z")

</div>

Well, sure, here is a GIF which hopefully is better than a screenshot, since it should demonstrate how the sorting gets “reset” after I visit the base URI again _(so visiting the dashboard without URI GET variables again)_:

![2023-03-03_16-43-02](https://global.discourse-cdn.com/free1/uploads/kanboard1/original/2X/7/74da04b7624da8274e2ff936fd0ce4cca5e8ef1b.gif)

In the screen cap I set “Due date” as the sorting option. Then tasks get sorted accordingly. Then I press my logo to visit the dashboard again (almost like a refresh, but with getting rid of the URI GET variables). Then the task sorting is again “Priority”, which seems to be the default.

Edit: I might have some kind of solution … yeah; after all I tried to dig into plugin stuff, hehe. Going to post my (probably noobish) solution here later!

---

<div class="post-metadata">

**Author:** ![Tagirijus](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/tagirijus/32/1528_2.png) [@Tagirijus](https://kanboard.discourse.group/u/Tagirijus)\
**Post date:** [March 3, 2023, 6:31pm UTC](https://kanboard.discourse.group/t/change-default-sort-for-dashboard-tasks/2663/6 "2023-03-03T18:31:23Z")

</div>

And now here I am still stuck, haha. But at least I might have learned something regarding the whole plugin writing system / logic.

I came up with a new question, which I just posted in another thread, where it might fit quite well, I guess:

> [@Modify dashboard](https://kanboard.discourse.group/t/modify-dashboard/1440/20):
>
> Hey Creecros. I am new here and I have a similar problem. I am at a point where I seem to understand the setTemplateOverwrite method and logic. The post starter asked about override a controller and you answered with the template overriding logic. Just to be clear, since I am still learning the plugin logic etc.: template overriding cannot override controllers, right? Or am I missing something? E.g. would it be possible to override the app/Pagination/DashboardPagination.php with a plugin?

So I wonder if this might be the right way: to override the _DashboardPagination.php_ with a plugin … if it is possible at all. I am still trying out in the meantime.

Yet I am happy for any new replies and help here. Thanks, people! (=

---

<div class="post-metadata">

**Author:** ![Tagirijus](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/tagirijus/32/1528_2.png) [@Tagirijus](https://kanboard.discourse.group/u/Tagirijus)\
**Post date:** [March 3, 2023, 7:49pm UTC](https://kanboard.discourse.group/t/change-default-sort-for-dashboard-tasks/2663/7 "2023-03-03T19:49:08Z")

</div>

Creecros helped me figuring out something important here and I was able to come up with my first very small plugin. I opened a new thread for it here:

> [@Plugin: Dashboard task default sorting change](https://kanboard.discourse.group/t/plugin-dashboard-task-default-sorting-change/2666):
>
> Hey there, after [having a problem](https://kanboard.discourse.group/t/change-default-sort-for-dashboard-tasks/2663) and then after some time digging into plugin stuff for Kanboard [with some help](https://kanboard.discourse.group/t/modify-dashboard/1440/22), I finally came up with something maybe usful for me. Maybe it’s useful for others as well: This is a simple plugin (without configuration yet), which makes the default sorting for tasks on the dashboard overview and tasks site sort by Due date DESC by default. One main thing I still try to figure out is how to make tasks without due date appear still on the bottom of the list. I…

---

<div class="post-metadata">

**Author:** ![aljawaid](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/aljawaid/32/1090_2.png) [@aljawaid](https://kanboard.discourse.group/u/aljawaid)\
**Post date:** [March 3, 2023, 10:23pm UTC](https://kanboard.discourse.group/t/change-default-sort-for-dashboard-tasks/2663/8 "2023-03-03T22:23:29Z")

</div>

Hello, welcome to the forum… you might find this useful if you are new to plugins.

> **[GitHub - aljawaid/KanboardSkeletonPlugin: This template repository is the...](https://github.com/aljawaid/KanboardSkeletonPlugin)**
>
> This template repository is the basic structure of a Kanboard Plugin. Use any part of this repository to create and develop your Kanboard Plugin. - GitHub - aljawaid/KanboardSkeletonPlugin: This te...

Once you are ready, publish your plugin to the extensions directory so users can install from within their Kanboard

> **[GitHub - kanboard/website: Kanboard's website](https://github.com/kanboard/website)**
>
> Kanboard's website. Contribute to kanboard/website development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Tagirijus](https://yyz2.discourse-cdn.com/free1/user_avatar/kanboard.discourse.group/tagirijus/32/1528_2.png) [@Tagirijus](https://kanboard.discourse.group/u/Tagirijus)\
**Post date:** [March 5, 2023, 11:55am UTC](https://kanboard.discourse.group/t/change-default-sort-for-dashboard-tasks/2663/9 "2023-03-05T11:55:27Z")

</div>

Hey there! I almost forgot to answer you _(due to my posting limit as a new user two days ago)_.

Thanks for your links! I will have a look. And thanks for the warm welcome here, hehe. (=
