i should order the following keys based on this custom order, without importing libraries:
{ "D" : (2, {"B"}), "B" : (0, set()