I want to redefine the order of tuples looking for specific words
Example: I have a list of tuples:
[{"a",["r001"]},
{"bi",["bidder"]},
{"bo",["an"]}]
But sometimes the order of tuples can change, for example:
[{"bi",["bidder"]},
{"a",["r001"]},
{"bo",["an"]}]
or
[{"bo",["an"]},
{"a",["r001"]},
{"bi",["bidder"]}]
The first line / list of tuples is my unique key ("bo", "a", "bi")
But I want to be able to arrange the list of tuples, always like:
[{"a",["r001"]},
{"bi",["bidder"]},
{"bo",["an"]}]
How can i achieve this?