Fixed history window issue(Date sorting).