Modify

Ticket #870 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

Make models lexicographly ordered by a field

Reported by: ejhernandez@… Owned by: ejhernandez@…
Milestone: 0.12 Component: base
Severity: minor Keywords: MVC order
Cc:

Description (last modified by ejhernandez@…) (diff)

Models which are not ordered, that is where the order doesn't matter, may be ordered to be print or viewed in a lexicographly order by a string field without implementing the protected method _tailoredOrder since it's a quite common feature by a significant number of models.

The attribute name to mark is sortedBy and its value is the name of the String field from where to order.

Attachments

Change History

comment:1 Changed 6 years ago by ejhernandez@…

  • Status changed from new to assigned

comment:2 Changed 6 years ago by ejhernandez@…

  • Description modified (diff)

comment:3 Changed 6 years ago by ejhernandez@…

(In [8726]) Added sortedBy feature to sort model by a field using cmp method refs #870

comment:4 Changed 6 years ago by ejhernandez@…

  • hours changed from 0 to 2.5
  • Status changed from assigned to closed
  • Resolution set to fixed
  • totalhours changed from 0.0 to 2.5

(In [8727]) Make all these models sorted by a field of theirs making some _tailoredOrder overrides useless closes #870 (spent 2.5)

comment:5 Changed 6 years ago by ejhernandez@…

(In [8729]) Added sortedBy property to order by service name refs #870

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.