Have a look at the doc for sorted, it’s got an argument for just the
occasion.

https://docs.python.org/2/library/functions.html#sorted
​

On 26 September 2017 at 17:04, jettam <[email protected]> wrote:

> This command sorts the values of my dictionary into a numerical order.  I
> now would like to reverse that numerical order. I can see there is a
> command called .reverse() that I should be able to include.
> But I have tried all kinds of ways to include it, I just cant get it to
> work. Could someone advise of the correct syntax.
>
>
> wordFrequencey = { 'ARE': 1, 'ART': 2, 'AS': 8, 'AT': 3, 'ATTEMPT': 2,
> 'AVERSION': 4, 'AWARE': 1, 'AWARENESS': 1}
>
> order = sorted(wordFrequencey.values())
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/python_inside_maya/c6b0ff1d-5568-4fbb-b553-
> 9fa0b209b959%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/c6b0ff1d-5568-4fbb-b553-9fa0b209b959%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOA6Z96_20pfu7Kqn9qEi1okcqnGB3rauy3BddCnYjSQ-A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to