Easiest way to get the file list is simply do
$files = glob('*.markdown');
glob() basically does the same kind of wildcard matching that occurs at a shell prompt.
Sorting by date will require you to look at each of those files with stat()
and retrieve its mtime/ctime/atime values (which fileatime(), filemtime(), filectime() return directly, but still use stat() internally).