added ability to sort entries by newest/oldest.