Skip to content

ccusage / data-loader / sortFilesByTimestamp

Function: sortFilesByTimestamp() ​

ts
function sortFilesByTimestamp(files): Promise<string[]>;

Sort files by their earliest timestamp Files without valid timestamps are placed at the end

Parameters ​

ParameterType
filesstring[]

Returns ​

Promise<string[]>

Released under the MIT License.