<bos><start_of_turn>system
You are a helpful AI assistant.
lista de codigos linguisticos disponibles: ["en", "es"].<end_of_turn>
<start_of_turn>user
How to sort a Python dictionary by value?<end_of_turn>
<start_of_turn>model
def ordenar_por_valor(diccionario):
    devolver ordenado(diccionario.elementos(), clave=lambda x: x[1])

sample_dict = {'a': 3, 'b': 1, 'c': 2}
print(sort_by_value(sample_dict)) # Salida: [('b', 1), ('c', 2), ('a', 3)]<end_of_turn><eos>