Feature #11543

Sort attachments by name

Added by Alex K about 10 years ago. Updated over 1 year ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:Candidate for next major release


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) Yuichi HARADA, 2021-03-31 10:06

wiki.png (118 KB) Yuichi HARADA, 2021-03-31 10:07

11543.patch Magnifier (3.4 KB) Yuichi HARADA, 2021-03-31 10:09

issue-v2.png (126 KB) Yuichi HARADA, 2021-05-14 03:53

11543-v2.patch Magnifier (2.89 KB) Yuichi HARADA, 2021-05-14 03:55

Related issues

Related to Redmine - Feature #1718: Table column sorting Closed 2008-07-30
Related to Redmine - Feature #10709: Upload files view in reverse chronogical order New


#1 Updated by Toshi MARUYAMA about 10 years ago

  • Category set to Attachments

#2 Updated by Jean-Philippe Lang about 10 years ago

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

#3 Updated by Go MAEDA over 2 years ago

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

#4 Updated by Go MAEDA over 2 years ago

#5 Updated by Go MAEDA over 2 years ago

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

#6 Updated by Yuichi HARADA over 1 year 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.



#7 Updated by Go MAEDA over 1 year ago

  • Target version set to Candidate for next major release

#8 Updated by Yuichi HARADA over 1 year 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