Commit 9b32e4e5 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

List views in alphabetical order on html export summary page (bug #533851)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent ef813fe7
...@@ -343,6 +343,10 @@ class PluginExportHtml extends PluginExport { ...@@ -343,6 +343,10 @@ class PluginExportHtml extends PluginExport {
); );
} }
} }
function sort_by_title($a, $b) {
return strnatcasecmp($a['title'], $b['title']);
}
usort($views, 'sort_by_title');
$smarty->assign('views', $views); $smarty->assign('views', $views);
if ($views) { if ($views) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment