code: def OnSortAscending(self, event):
          try:
              with undo.group(_("Sort ascending")):
                  self.grid.actions.sort_ascending(self.grid.actions.cursor)
              statustext = _(u"Sorting complete.")
          except Exception, err:
              statustext = _(u"Sorting failed: {}").format(err)
          post_command_event(self.grid.main_window, self.grid.StatusBarMsg,
                             text=statustext)