Sorting functions in Python

Deal All

I find the sorting functions to be very user unfriendly and counter intuitive

For ex, to sort in descending order, I have to use “reverse=True” (they could have just called it ascending or descending !)

Also there is no good documentation on what are the other options for sort

In my assignment for frequently occurring words in a text, I sorted the dictionary using this

sorted(word_dict,key=word_dict.get,reverse=True) although I did not quite follow the syntax completely

Is there any good documentation on understanding the usage of these better ?

Thanks
Harish

There is a documentation to each and every operation you can use in Python/ NumPy or any package.
You can find the one for sorting here.