separated sort from menu to make adding new sorts easier