title: How to get a Ordereddictionary element with lowest value, which is also greater than a certian threshold, in python?
body: <p>Right now i am doing this to get the key for the lowest value in an ordered dict</p>
  
  <pre><code>hunting_targets = OrderedDict()
  for element in data["hunting_targets"]:
      hunting_targets[data["hunting_targets"][element]["user_id"]]=data["hunting_targets"]element]["gold"]
  hunting_targets=OrderedDict(sorted(hunting_targets.items(), key=lambda t: t[1],reverse= False))
  
  hunting_target = next(iter(hunting_targets))
  </code></pre>
  
  <p>I would now repeat the last step until value is greater than Threshold.</p>
  
  <p>But there is probably a more efficient way isn't there ?
  <br>
  What is a more efficient way of doing this?</p>
  
  <p>Edit: key is and id of type int. and value is an int too</p>