I have captured the dates from array by using below code ,and i need a help how i can verify the diplayed dates are displayed correctly in ascending and descending order.