fixing sorting ccard listing by date bug