Add the sort function and add nodemon to package.json