sort function dose to seem to work

my sort function dose nt work. for example
when i press enter it says (sort is not attribute?
any help would be great thank you

Hello @maxie2396 ,

are you sure you are posting the correct group?
Your syntax is not R.
Are you mixing R and Python?

R syntax would be (and note the order of comma's and quotes):