how to make ascending into descending?

Hi
I have this line of code, which sorts items in a popup menu into a ascending manner, what I am wanting to do is have the items in a descending manner.

set sorter to current application's NSSortDescriptor's sortDescriptorWithKey_ascending_("kMDItemFSName",1)

I have tried this but it does nothing, so I guess i’m doing something wrong

NSSortDescriptor's sortDescriptorWithKey_nil_ascending_YES

could someone please help me sort this

cheers

The ascending parameter should be true for ascending or false for descending.

thanks Shane

I have tried, the below with no luck, I must be putting something in the wrong area?

sortDescriptorWithKey_ascending_NO
sortDescriptorWithKey_ascending_False

Go back to what you posted earlier:

set sorter to current application’s NSSortDescriptor’s sortDescriptorWithKey_ascending_(“kMDItemFSName”,false)

:rolleyes: to easy, thanks for helping out :smiley: