Fixed the timer and added a function for the sorting in beerAndFries.js