add sorting feature
add routes