Did you try the Filelist Plugin? It can recursively crawl through subnamespaces, e.g. to lists all media files that start with "doc":
{{filelist>:doc*.*&style=table&tableheader=1&tableshowdate=1&tableshowsize=1&recursive=1]}}
Or to lists all media files in the top namespace and all of it's subnamespaces that start with doc
{{filelist>:top_namespace:doc*.*&style=table&tableheader=1&tableshowdate=1&tableshowsize=1&recursive=1]}}
Also you can use the Sortable Plugin to sort the table, like so:
<sortable>
{{filelist>:doc*.*&style=table&tableheader=1&tableshowdate=1&tableshowsize=1&recursive=1]}}
</sortable>
But, since the filelist plugin lists the filename as paths, those paths have to be trimmed from the filenames, so that sortable plugin can sort filenames properly. This is where Javascript comes in handy! Put following code inside your /dokuwiki/conf/userscript.js
(create this file if it does not exist yet):
jQuery("div.filelist-plugin a").each(function() {
var $filelist_name = jQuery(this).text();
$filelist_name = $filelist_name.split('/');
$filelist_name = $filelist_name[$filelist_name.length - 1];
jQuery(this).text( $filelist_name );
});
setTimeout(function() {
jQuery("div.filelist-plugin th").eq(0).click();
}, 100);
This will sort by pagename by default. Timeout 100 milliseconds might need adjustment to maybe 300 on large pages and slow wikis due to delay of pageloading. (tested with DokuWiki Igor, Sprintdoc Template and recent versions of mentioned plugins)
If you want to reverse the sort order, change this line, as so:
jQuery("div.filelist-plugin th").eq(0).click().click();
(Testing new javascript requires to delete temporary files in the browser cache. This can be accomplished by shutting the browser down and opening it up again. Or in the browser settings.)
Cheers!