This is one of those cases where it would be more efficient to ask the underlying OS to do the hard work, especially if you are combing many files:
%x[ls -rU *.json | tail -10].split("\n")
On Mac OS, which opens the shell, sort all * .json files by creation date in reverse order, returning the last ten. The names will be returned in the string, so it splitsplits them into an Array at the ends of the lines.
ls tail C-, , Ruby, .
. Windows , . Linux .