Project

General

Profile

Actions

Feature #22497

open

Sorting and displaying users is different order

Added by Krzysztof Wosinski about 8 years ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Accounts / authentication
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

I tried to sort users (mainly in watchers list) in a different order than the order of displaing them. While users are to be displayed in the 'firstname lastname' order, I wanted to sort them by their lastname ('lastname firstname'), for example: "John Doe, Ann Smith" instead of the default sorting for this type of display "Ann Smith, John Doe".
I changed the order the ':order' field in /models/user.rb but it seems that it affected nothing - the users are still ordered according to the setting in ':string' field.
What does the ':order' do then?

Environment:
Redmine version 2.4.2.stable
Ruby version 1.9.3-p484
Rails version 3.2.16

Actions #1

Updated by Toshi MARUYAMA almost 8 years ago

  • Tracker changed from Defect to Feature
  • Category changed from Issues planning to Accounts / authentication
Actions #2

Updated by philippe lhardy 3 months ago

Quickly looking at this i wonder it is #40100.
ordering comes from sorted, but can be defeated later by any call to sort on collections.

Actions

Also available in: Atom PDF