- edited description
New sortBy method
Issue #27
closed
A sortBy
instance method, with multi-arguments, should be added to change the default order of display.
Example:
>>> Lea.cprod(surname,gender,height)
('Humphries', 'female', 123.0) : 1/6
('McGovern', 'male', 91.0) : 1/6
('Nunez', 'female', 126.0) : 1/6
('Seguin', 'male', 118.0) : 1/6
('Vaz', 'female', 126.0) : 1/6
('West', 'male', 93.0) : 1/6
>>> Lea.cprod(surname,gender,height).sortBy(gender,height)
('Humphries', 'female', 123.0) : 1/6
('Nunez', 'female', 126.0) : 1/6
('Vaz', 'female', 126.0) : 1/6
('McGovern', 'male', 91.0) : 1/6
('West', 'male', 93.0) : 1/6
('Seguin', 'male', 118.0) : 1/6
Comments (6)
-
reporter -
reporter - edited description
-
reporter New Alea constructor to keep values in the given order, new Lea.orderBy method (refs
#26,#27)→ <<cset b91457257b81>>
-
reporter - changed status to resolved
Done in Lea 2.2
-
reporter - changed status to closed
- edited description
-
reporter New Alea constructor to keep values in the given order, new Lea.orderBy method (refs
#26,#27)→ <<cset 6e0a87fec92a>>
- Log in to comment