mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-10 13:57:08 +01:00
9 lines
265 B
Python
9 lines
265 B
Python
|
|
|
|
obj1 = self.ItemToObject(item1)
|
|
obj2 = self.ItemToObject(item2)
|
|
if obj1[column] == obj2[column]:
|
|
return 1 if ascending == (item1.GetId() > item2.GetId()) else -1
|
|
else:
|
|
return 1 if ascending == (obj1[column] > obj2[column]) else -1
|