Roundup Tracker - Issues

Message7210

Author ngaba
Recipients ngaba, rouilj, schlatterbeck
Date 2021-04-22.01:00:32
Message-id <1619053232.63.0.451397915026.issue2551120@roundup.psfhosted.org>
In-reply-to
> 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.
History
Date User Action Args
2021-04-22 01:00:32ngabasetmessageid: <1619053232.63.0.451397915026.issue2551120@roundup.psfhosted.org>
2021-04-22 01:00:32ngabasetrecipients: + ngaba, schlatterbeck, rouilj
2021-04-22 01:00:32ngabalinkissue2551120 messages
2021-04-22 01:00:32ngabacreate