gui/controls/gridview.py
def SortColumn(self, col):
        "col -> sort the data based on the column indexed by col"
        name = self.columns[col].name
        _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)
def SortColumn(self, col):
        "col -> sort the data based on the column indexed by col"
        name = self.columns[col].name
        _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)
col -> sort the data based on the column indexed by col