diff --git a/apps/gallery/lib/album.php b/apps/gallery/lib/album.php index 72653c8de15..d2c420eb9ef 100644 --- a/apps/gallery/lib/album.php +++ b/apps/gallery/lib/album.php @@ -69,6 +69,8 @@ class OC_Gallery_Album { $sql .= ' AND album_path = ?'; $args[] = $path; } + $sql .= ' ORDER BY album_name ASC'; + $stmt = OC_DB::prepare($sql); return $stmt->execute($args); }