How to sort that values of x are all in the same order of y? Both dictionaries have different keys.
x = {0: \'C\', 1: \'N\', 2: \'H\', 24: \'C\', 25: \'C\', 26: \