diff --git a/src/osx/cocoa/dataview.mm b/src/osx/cocoa/dataview.mm index 83b3fd9343..23b0a2511e 100644 --- a/src/osx/cocoa/dataview.mm +++ b/src/osx/cocoa/dataview.mm @@ -652,9 +652,12 @@ outlineView:(NSOutlineView*)outlineView for (NSUInteger i=0; iGetColumn([[newDescriptor key] intValue]); + + sortingColumn->SetSortOrderVariable([newDescriptor ascending]); [wxSortDescriptors addObject:[[[wxSortDescriptorObject alloc] initWithModelPtr:model - sortingColumnPtr:dvc->GetColumn([[newDescriptor key] intValue]) + sortingColumnPtr:sortingColumn ascending:[newDescriptor ascending]] autorelease]]; } [(wxCocoaOutlineDataSource*)[outlineView dataSource] setSortDescriptors:wxSortDescriptors];