Sort a Range of Cells, win32com.client
问题 I am trying to sort a range of cells in python using win32com: Code I've been using is: sheet.Range("A1:B8").Sort(Key1=sheet.Range("B1"), Orientation=constants.xlAscending) which is working. It sorts the range of cells by the second column: When I want, is to sort Descending instead of Ascending: sheet.Range("B8:A1").Sort(Key1=sheet.Range("B1"), Orientation=constants.xlDescending) but for some weird reason, it switches the data from each column and doesn't sort the values that were initially