fixed rex_sortable_iterator, closes #222