Assuming your hash uses dates for the keys, first write a function that compares two dates and returns -1 if the first is less than the second, or 1 if the first is greater than the second, or 0 if they are equal. Then do this:
I would give you the code for the date comparison function, but I have no idea how you have formatted the dates (e.g. seconds from epoch, day of the year, MM/DD/YYYY, DD/MM/YYYY, YYYY-MM-DD, etc.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.