sorting and date limiting are working