Name
Listview.CompareItems -- determine how entries should be sorted
Function
When setting up a notification on this attribute, RapaGUI will run your event callback whenever it needs to sort the list entries. The callback function will receive two entries as arguments and it has to determine which entry should be put first.

Your event handler will be called with the following extra arguments:

Entry1:
The first entry.

Entry2:
The second entry.

Your callback function then has to return a value that indicates how the two entries should be aligned in the listview. If entry 1 should be placed before 2, your callback has to return -1. If entry 1 should be placed after entry 2, your callback has to return 1. If the two entries are the same, return 0.

See Notifications for details.

Type
Boolean

Applicability
N


Show TOC