Feature #11543


Sort attachments by name

Added by Alex K over 11 years ago. Updated almost 3 years ago.

Start date:
Due date:
% Done:


Estimated time:


Is it possible to modify one of the controller files to change the sort order of attachments shown in issues and the wiki? They're currently all sorted by the date they were uploaded, but I'd like to sort them by file name because I get various results in the order of files I upload when I do large amoutns (20-30 files) depending on my connection and which browser I use, it starts to make pretty messy lists. It would be nice if there was a feature to set this in the administrator settings as well. I've searched all over and while I have found information about sorting files in other sections of Redmine, I cannot find anything for attachments. I hope this is the right place to submit this.


issue.png (138 KB) issue.png Yuichi HARADA, 2021-03-31 10:06
wiki.png (118 KB) wiki.png Yuichi HARADA, 2021-03-31 10:07
11543.patch (3.4 KB) 11543.patch Yuichi HARADA, 2021-03-31 10:09
issue-v2.png (126 KB) issue-v2.png Yuichi HARADA, 2021-05-14 03:53
11543-v2.patch (2.89 KB) 11543-v2.patch Yuichi HARADA, 2021-05-14 03:55

Related issues

Related to Redmine - Feature #1718: Table column sortingClosedGo MAEDA2008-07-30

Related to Redmine - Feature #10709: Upload files view in reverse chronogical orderNew

Actions #1

Updated by Toshi MARUYAMA over 11 years ago

  • Category set to Attachments
Actions #2

Updated by Jean-Philippe Lang over 11 years ago

  • Tracker changed from Defect to Feature
  • Subject changed from Attachment sorting to Sort attachments by name
Actions #3

Updated by Go MAEDA about 4 years ago

If the patch in #1718 is accepted, we can make use of tablesort js library to implement this feature.

Actions #4

Updated by Go MAEDA about 4 years ago

Actions #5

Updated by Go MAEDA about 4 years ago

  • Related to Feature #10709: Upload files view in reverse chronogical order added
Actions #6

Updated by Yuichi HARADA about 3 years ago

I implemented sorting in the attachments list of Issue and Wiki (I referred to #1718). Name, Description, Author, Created can be sorting.
I have attached a patch.



Actions #7

Updated by Go MAEDA about 3 years ago

  • Target version set to Candidate for next major release
Actions #8

Updated by Yuichi HARADA almost 3 years ago

The following points have been fixed.
  • To return the sort order to the initial state, the serial number column is added to the beginning so that it can be sorted.
  • The Author and the Created were separated columns, but the Created column cannot be sorted properly because the format of the displayed date-time string changes depending on the setting of My account > Language. Therefore, the Author and the Created columns have been reverted.


Also available in: Atom PDF