create compare module
refactor sorter method