Fixed Authorize route
Added notes sorting