Fixed date sorting bug in chrome.