Added sort by date parameter.