data = []
for player, batting in list(rays_starters.items()):
    data.append((batting[1], player, batting[0], batting[2]))
data.sort()
for player in data:
    pass
Looping over a dictionary to display key and values in order of a value