i gather you should have the problem worked out by now, to sort the values of the hash. To make it much simpler to work with the dates in the hash, you could store YYYYMMDD format instead and treat as a number (not a string). Then, sorting and comparisons will be much simpler. Convert to MM/DD/YYYY only when needed, for display etc.