Patch #1708

'Assigned to' list sorts by id, not name

Added by Christian Bryn about 14 years ago. Updated almost 14 years ago.

Status:ClosedStart date:2008-07-29
Priority:NormalDue date:
Assignee:-% Done:


Target version:0.8


When assigning issues to users, finding the right person in the drop down list can be more time consuming than it should - as the list grows it appears as a mess. The truth is that it's not a mess, but sorted by id - this does not make sense to a user ;-)

I have attached patches for 0.7.3, but the behavior is the same in subversion (r1709). The patches will sort by (first) name instead of id.

Please let me know if you need more information etc.

Best regards,
Christian Bryn :--)

_form.rhtml.diff Magnifier (275 Bytes) Christian Bryn, 2008-07-29 16:42

_form_update.rhtml.diff Magnifier (273 Bytes) Christian Bryn, 2008-07-29 16:42

user-sorting-r1711.patch Magnifier - User sorting - system setting r1711 (7.57 KB) Eric Davis, 2008-07-31 05:38

user-sorting-example.png - Example screenshot of the system setting (19.5 KB) Eric Davis, 2008-07-31 05:38

Related issues

Related to Redmine - Feature #1595: Make last name an optional field New 2008-07-07
Related to Redmine - Defect #1841: Include both first and last name when sorting by users Closed 2008-09-02
Related to Redmine - Patch #2015: sort by name in select box to add user to project. Closed 2008-10-09


#1 Updated by Ewan Makepeace about 14 years ago

I looked around and apparently users are sorted by lastname not ID?

+1 for the option to sort by first name however.

#2 Updated by Eric Davis about 14 years ago

Attached is a patch (with tests) that make user sorted a system setting. In Administration > Settings > General is an option to sort users by first name, last name, or login. This will affect assignment boxes like the patch above and also the sorting on a Projects member page.

#3 Updated by Jean-Philippe Lang almost 14 years ago

  • Category changed from Issues to UI
  • Status changed from New to Closed
  • Target version set to 0.8

I think it makes sens to simply sort users by their display names so that users dropdown list are properly sorted alphabetically. It's fixed in r2010.

#4 Updated by Christian Bryn almost 14 years ago

Sounds good to me, thanks :-)

Also available in: Atom PDF