fixed the name of the query orderAscDesc in server.js