link_pdf ordering

edited May 2014 in Feature Requests
How does the link_pdf attribute for a WYSIWYG form element work to show the PDFs. They seem to be ordered by most recently added first. Is there a way to get them to display in alphabetic order?

Comments

  • edited May 2014
    It uses the directory_to_array function which may return the files in a different manner. In the Fuel_assets::dir_files() method, does it work if you do the following:
    public function dir_files($folder, $recursive = FALSE, $append_path = FALSE) { $dir = assets_server_path($folder); $files = directory_to_array($dir, $recursive, array(), $append_path); sort($files); return $files; }
Sign In or Register to comment.