Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 618 by damien.c...@gmail.com: [Glamour] Sorting of lists should be made easier http://code.google.com/p/moose-technology/issues/detail?id=618
Currently, a user has to do the following to sort a list:
a list display: [:x | ((... x ...) ...) sorted: [...]]
or
a list display: [:x | ((... x ...) ...) asSortedCollection]
All these parenthesis make the code a bit hard to read. I propose
a list display: [:x | (... x ...) ...]; sorted: [...]
or
a list display: [:x | (... x ...) ...]; sorted
which removes a level of parenthesis and simplifies indentation.
Comment #1 on issue 618 by damien.c...@gmail.com: [Glamour] Sorting of lists should be made easier http://code.google.com/p/moose-technology/issues/detail?id=618
Fixed in Glamour-Scripting-DamienCassou.121 and Glamour-Presentations-DamienCassou.92.
Applied in Glamour-Examples-DamienCassou.178.
What do you think?
Updates: Status: Fixed Owner: damien.c...@gmail.com Labels: Component-Glamour Milestone-4.4
Comment #2 on issue 618 by tudor.gi...@gmail.com: [Glamour] Sorting of lists should be made easier http://code.google.com/p/moose-technology/issues/detail?id=618
Thanks. I think the idea is nice. We should only keep an eye for possible issues resulting from overloading displayValue with the sorted block. But, at the moment is fine as it is.