finally got the parameter passed in correctly to sort by titles, dates