I would like to be able to sort a directory by the time the files were added to the directory.
mtime doesn't fully fit the purpose. A file that has been modified long ago but copied to a directory only recently would have the old date as mtime, and not appear at the top of the listing when sorted by mtime.
ctime, unfortunately, also doesn't work for my intent. On macOS it appears to also when a file was accessed. So, recently accessed files would appear at the top of the list.
On macOS there is also a date called "Date Added". It is used by Finder and this is what I want to see and sort by most of the time. It can be inspected by running mdls $file and checking the key kMDItemDateAdded.
Is there maybe a way to somehow use this macOS-specific date for sorting?