Added sorting function for Date (need fix converter)