Added Sorting to Cookies