Make dateSorter configurable, simplify range checks, use slightly more descriptive names in reducer