Message7210
> by classprop do you mean classprop is a multilink to a Class?
No. It is just a link.
It may be undocumented, but in this case
context.documents.sorted('classprop')
sorts the documents list by the order property of the (linked) classprop property of the elements in this list. [*]
And in my opinion, this is the only sensible definition of the above command (in real life situations 'classprop' can be 'importance', for example: and instead of hard-coded numbers we use a Class() for representing the possible values of importance). Otherwise, this operation should be undefined. :)
And the same "bug" occurs in [*] as in issue2551122: The order property is always treated as string. |
|
Date |
User |
Action |
Args |
2021-04-22 01:00:32 | ngaba | set | messageid: <1619053232.63.0.451397915026.issue2551120@roundup.psfhosted.org> |
2021-04-22 01:00:32 | ngaba | set | recipients:
+ ngaba, schlatterbeck, rouilj |
2021-04-22 01:00:32 | ngaba | link | issue2551120 messages |
2021-04-22 01:00:32 | ngaba | create | |
|