DateUtils Description Twigkit service for useful date functions Methods dateSortResults(results, dateField, oldestFirst) Sort results array by date ParametersParamTypeDetailsresultsmixedArray of results from response dateFieldstringResult field to use for ordering oldestFirstbooleanIf true the results will be order from oldest to newest ReturnsmixedSorted array of results groupByDateRanges(results, dateField, groupBy) Group results into date ranges, used for the timeline ParametersParamTypeDetailsresultsmixedSorted array of results dateFieldstringResult field to use for ordering groupBystringOptionally specify how to group the results, by default it tries to get the best fit ReturnsmixedArray of grouped results