paperless-desktop icon indicating copy to clipboard operation
paperless-desktop copied to clipboard

Changing default sort order to alphabetical

Open NickBusey opened this issue 6 years ago • 7 comments

Describe the changes you made

I changed the default sort order for documents to be by name instead of created date.

Why were these changes necessary/desired?

Same reason we changed the sort of the tags on the left, much easier to scan.

If having it sortable by most recent is also still desirable, I'll look into adding a sort mode toggle potentially? But in general I find alphabetical to be a much more useful default view.

How can the changes be tested?

Look at your document order on the main page.

Did you already test the changes?

Yup, As are before Bs.

NickBusey avatar Jul 13 '18 14:07 NickBusey

That's a good point. It's very usecase dependent. For my usecase of paper-invoice-tracking the order by created date is great. I think a toggle button would be ideal here, including storing the user preference in localstorage.

thomasbrueggemann avatar Jul 14 '18 07:07 thomasbrueggemann

Alright, I've added a select box, and it works, kinda. Once you change the setting you have to select and then un-select a tag or correspondent to get it to re-render the documents. Not sure how to fix that yet..

NickBusey avatar Jul 16 '18 05:07 NickBusey

I can take a look at it next weekend.

thomasbrueggemann avatar Jul 16 '18 21:07 thomasbrueggemann

Alright this should be good to go, other than the horrendous commit history.

NickBusey avatar Jul 18 '18 05:07 NickBusey

Alright, this is good now, with a small bug due to https://github.com/danielquinn/paperless/issues/382 that will be resolved in paperless itself.

NickBusey avatar Jul 18 '18 14:07 NickBusey

Alright, well daniel has decided that the alpha ordering works as expected (I disagree) but since it looks like no progress will be made on the internal issue referenced above, this issue looks to be as ready as it'll ever be.

NickBusey avatar Sep 12 '18 01:09 NickBusey

@NickBusey I don't have time to maintain this project anymore, so I gave you commit access to make any changes you'd like. It would be nice to follow the style used by the rest of the code.

thomasbrueggemann avatar Oct 17 '19 20:10 thomasbrueggemann