sorting on the front-end
sorting backend and other minor fixes with sorting