Add sorting option on /get/ API