Commit 5f19b576 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Order views alphabetically in My Views block


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 2b59fd92
......@@ -59,7 +59,7 @@ class PluginBlocktypeMyviews extends SystemBlocktype {
// Get viewable views
$views = array();
if ($allviews = get_records_select_array('view', 'owner = ? AND type != ?', array($userid, 'profile'))) {
if ($allviews = get_records_select_array('view', 'owner = ? AND type != ?', array($userid, 'profile'), 'title')) {
foreach ($allviews as $view) {
if (can_view_view($view->id)) {
$views[$view->id] = $view;
......
Supports Markdown
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