Sort By commit time in github repository

Sort Files by Commit Time in Github Repository
We need a feature for this one. which can sort the files by the last updated time in the repository. Not Alphabetical order. Please think about this feature! please! We need this a lot

You can actually try the following,

Fork the repo to your local system,

Iterate over the files, get timestamps and sort them by git modification time, just by running this command (this must work) –

while read file; do echo $(git log --pretty=format:%ad -n 1 --date=raw -- $file) $file; done < <(git ls-tree -r --name-only HEAD) | sort -k1,1n
1 Like