Check out example codes for "sort a list of ints python in descending order". It will help you in understanding the concepts better.

Code Example 1

print sorted(ListB, reverse=True)

Learn ReactJs, React Native from akashmittal.com