tiny refactor about Market#sort_order