Put OID sorting back into the database.  IISets turn out to be wildly inefficient at random inserts, so add refs in order.

(Now to consider what that means for the tree traversal...)