Finished history sort-filter functions