def OnComponentSortOrderUp(self, event):
    selection = self.componentSortOrderBox.Selection
    if ((selection != wx.NOT_FOUND) and (selection > 0)):
        item = self.componentSortOrderBox.GetString(selection)
        self.componentSortOrderBox.Delete(selection)
        self.componentSortOrderBox.Insert(item, (selection - 1))
        self.componentSortOrderBox.SetSelection((selection - 1))
def OnComponentSortOrderUp(self, event):
    selection = self.componentSortOrderBox.Selection
    if ((selection != wx.NOT_FOUND) and (selection > 0)):
        item = self.componentSortOrderBox.GetString(selection)
        self.componentSortOrderBox.Delete(selection)
        self.componentSortOrderBox.Insert(item, (selection - 1))
        self.componentSortOrderBox.SetSelection((selection - 1))