Implemented rm_sortRel. Closes #19