-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 16.07.2015 18:56, Ryan Ollos wrote:
> On Thu, Jul 16, 2015 at 4:49 AM, Mo <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     Hi,
> 
>     if sorting for status in the ticket list this appears to sort
>     alphabetically like accepted, closed, new.
>     A workflow sorting would be more appropriate here like new,
>     accepted, closed. It this already possible or worth a bug report?
> 
>     Best regards.
> 
> 
> Only alphabetical sorting is possible in the Report and Query views.
> 
> While there is an intuitive ordering for the 3 states you've shown, it's
> not clear what criteria would actually be used to sort them. Consider a
> moderately more complex workflow. What is the "intuitive" ordering, and
> what the algorithm be to determine the ordering?
> http://trac.edgewall.org/wiki/TracWorkflow#Environmentscreatedwith0.11

No algorithm, but I remember using the nearly undocumented
<action>.weight option for sorting actions in ticket view (see docstring
of ITicketActionController.get_ticket_actions method [1]). IMHO the same
ordering sould be considered for an alternative sort.

Steffen Hoffmann


[1] http://trac.edgewall.org/browser/tags/trac-0.11/trac/ticket/api.py#L42
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlWoBMMACgkQ31DJeiZFuHdXKACgpkx2ausjbu/mx3vrTgpKvNiS
SoMAoJBqMB/O4SGu6aCxutBWylqUyK8A
=bhZR
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to