sorted insert. ruby blocks ftw.