src/Sonic/Routes/ListRoute.php
public function dates($path = '')
    {
        // Get all files in path
        $contents = $this->sonic->app['filesystem']->listContents($path, TRUE);
        // Create array
        $date_list = array();

        // Iterate through files and get dates
        foreach ($contents as $file) {
            if (
                isset($file['extension']) === TRUE
                && $file['extension'] === 'md'
            ) {
                $date_list[$file['path']] = $this->date($file);
            }
        }

        // Sort the files by date
        arsort($date_list);

        return $date_list;
    }
public function dates($path = '')
    {
        // Get all files in path
        $contents = $this->sonic->app['filesystem']->listContents($path, TRUE);
        // Create array
        $date_list = array();

        // Iterate through files and get dates
        foreach ($contents as $file) {
            if (
                isset($file['extension']) === TRUE
                && $file['extension'] === 'md'
            ) {
                $date_list[$file['path']] = $this->date($file);
            }
        }

        // Sort the files by date
        arsort($date_list);

        return $date_list;
    }
Plugin handler

@param  string $path
@return array