Add sorting support for iterators (yeah, I know)