how to sort row at wxGrid?
to sort column I found function at demo:
def SortColumn(self, col):
"""col -> sort the data based on the column indexed by col"""
name = self.colnames[col]
_data = []
for row in self.data:
rowname, entry = row
_data.append((entry.get(name, None), row))
_data.sort()
self.data = []
for sortvalue, row in _data:
self.data.append(row)
···
--
WBR, sector119