This does not work. It does not sort the files by timestamp.
@rahulkav
A much shorter version of your solution. We can generate the files list directly. Solution only works if you don't exceed the maximum length of the "ls" command line and if none of the directory or file names found contain space characters.
ls -lt `find . -type f -name "test.txt" -print`
Or
ls -lt $( find . -type f -name "test.txt" -print )
Odd. Works fine here. My find-exec-+ and your ls-command substitution suggestions should be practically identical, except in cases where the list of files includes members with IFS characters (the command substitution will break) or where the list exceeds the command line length limit (yours would error out and mine would exec multiple ls commands (undesirably yielding two independently sorted lists)).