parameters: (self, col=-1, ascending=1)
docstring: Sort the list on demand.  Can also be used to set the sort column and order.
docstring_summary: Sort the list on demand.  Can also be used to set the sort column and order.
docstring_tokens: Sort the list on demand . Can also be used to set the sort column and order .
function: def SortListItems(self, col=-1, ascending=1):
          """Sort the list on demand.  Can also be used to set the sort column and order."""
          oldCol = self._col
          if col != -1:
              self._col = col
              self._colSortFlag[col] = ascending
          self.GetListCtrl().SortItems(self.GetColumnSorter())
          self.__updateImages(oldCol)
function_tokens: def SortListItems ( self , col = - 1 , ascending = 1 ) : oldCol = self . _col if col != - 1 : self . _col = col self . _colSortFlag [ col ] = ascending self . GetListCtrl ( ) . SortItems ( self . GetColumnSorter ( ) ) self . __updateImages ( oldCol )