Add sorting for list in server.js.