[sort](https://nim-lang.org/docs/tables.html#sort%2COrderedTableRef%5BA%2CB%5D%2Cproc%28%2C%29)
and
[pop](https://nim-lang.org/docs/tables.html#pop%2COrderedTable%5BA%2CB%5D%2CA%2CB)
are in std/tables. I agree that `reverse` should be provided. It's hard to
implement without accessing the underlying seq.
proc find[A, B](self: OrderedTable[A, B], item: B): tuple[found: bool, key:
A] =
for (k, v) in self.pairs():
if item == v:
return (true, k)
proc reversed[T: OrderedTable](self: T): T =
let keys = self.keys().toSeq()
for k in reversed(keys):
result[k] = self[k]
Run