inline sorter methods