freescout-help-desk / freescout

FreeScout — Free self-hosted help desk & shared mailbox (Zendesk / Help Scout alternative)
https://freescout.net
GNU Affero General Public License v3.0
3.04k stars 497 forks source link

Feature Request: sort conversations lists #919

Closed psuter80 closed 3 years ago

psuter80 commented 3 years ago

It seems that the listing of conversations in a folder is currently not sorted at all. at least I can't find any logic behind the order how they are displayed.

it would be nice to be able to click on the message headers in order to order the threads by this column either up or down, bascially like in most email clients :)

as a quick intermediate solution to bring some degree of order into the lists, I think sorting the messages by last update date would be a feasible default and probably what most people want.

this would also solve #323

EDIT: I have to be more precise.. it seems sorted by exactly the column i ment in the "Mine" folder, but other folders like drafts or Closed seem to be in random order.

freescout-helpdesk commented 3 years ago

See sorting rules here: https://github.com/freescout-helpdesk/freescout/blob/dist/app/Folder.php#L144

freescout-helpdesk commented 3 years ago

Also https://freescout.net/module/inbox/ should help to resolve your confusion.

andrewlimaza commented 2 years ago

This filter should be when you return or right before (so developer's can overwrite it) - https://github.com/freescout-helpdesk/freescout/blob/dist/app/Folder.php#L174

It's in the default case, which doesn't run in most cases.

MarcoWel commented 2 years ago

Hi, In the latest version of FreeScout it is still not possible to resort columns by clicking on the column header in the conversations overview. This is supported by all major ticketing systems and an important feature.

Please get this implemented, we would pay for an extension module too, of course! :)

MarcoWel commented 2 years ago

https://feedback.userreport.com/25a3cb5f-e4bd-4470-b6f3-79fcfaa8e90f/#idea/372954

sideshot commented 2 years ago

This filter should be when you return or right before (so developer's can overwrite it) - https://github.com/freescout-helpdesk/freescout/blob/dist/app/Folder.php#L174

It's in the default case, which doesn't run in most cases.

We ended up just modifying the file to sort in reverse. In our case, it should always be the oldest are seen first.

                #$order_by[] = ['status' => 'asc'];
                $order_by[] = ['last_reply_at' => 'asc'];