sorted and display all cards on the page