Update entries.js

Added Sorting functionality to entries