some tweaks to sorter