Edgewall Software
Modify

Opened 18 years ago

Last modified 10 years ago

#4644 new enhancement

Report/Query result re-ordering should support secondary sort field.

Reported by: mikejbrady@… Owned by:
Priority: normal Milestone: unscheduled
Component: report system Version: 0.10.3
Severity: normal Keywords: query sorting
Cc: mpotter@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

You get a little of this when you select grouping and ordering. It's grouped by the primary ordering, then sorted within the group for the secondary ordering. However, with lots of tickets, it's nice to have two sort levels within a grouping.

My favorite implementation makes the current primary sort field into the secondary sort field when another column is clicked. Here's an example:

The subsequent row is the result of the click action on a given row.

Current Action
Primary Secondary Click
Milestone v     Owner
Owner V Milestone v Version
Version v Owner v Milestone
Milestone v Version v Milestone
Milestone ^ Version v Owner
Owner v Milestone ^ Owner
Owner ^ Milestone ^ ...

You get the idea.

Attachments (0)

Change History (7)

comment:1 by Christian Boos, 18 years ago

Keywords: query sorting added
Milestone: 1.0

Interesting. We'd need some kind of visual hint about what's the primary and what's the secondary sort field.

comment:2 by anonymous, 18 years ago

I often see the up/down arrow on the primary sort field. However, I have never seen an indication of secondary sort field, even when the feature is in place. It just becomes a sort of incidental bonus feature that people figure out pretty quickly. It really becomes pretty obvious with use. I suppose you could use arrows with differing opacity, or some other visual cue if you so desired. However, I do not see it as necessary.

I saw one app that supported tertiary sort with this column click reordering metaphor, though that certainly seemed like overkill to me.

comment:3 by Matthew Good, 18 years ago

Since the Query module keeps the results of the last query in the session it should be possible to do a stable-sort based on the previous results, in which case there's no limit to the number of levels of sorting.

comment:4 by Christian Boos, 16 years ago

#8320 requested this as well, and discussed the syntax for query links that would allow this. Implementing only #8320 might be a good intermediate step?

comment:5 by Christian Boos, 15 years ago

Milestone: 1.0unscheduled

Milestone 1.0 deleted

in reply to:  4 comment:6 by mpotter@…, 14 years ago

Cc: mpotter@… added

Once one has generalized to support a secondary sort order, I would think supporting more would be minor (save the UI hints which I feel can be ignored). Except we may want to limit the possibility of redundant and/or superfluousness sorts. To avoid these my I suggest:

  • When user selects a new sort column.
    • If same as current head
      • Change head to be it's reverse.
    • Else if id or any other unique value column (possibly the time-date columns)
      • Empty the sort-order list and replace with just the selected column.
    • Else if selected column is in the sort list
      • Remove it's previous entry, and add a new entry to the head of the list.
    • Else it is a new column
      • Add it to the head of the list.

comment:7 by Ryan J Ollos, 10 years ago

Owner: Matthew Good removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.