how to sort the values in key value pairs code example Example: python get dictionary keys sorted by value sorted(A, key=A.get)