Sort albums first

This commit is contained in:
Stian Lund
2023-07-31 23:45:24 +02:00
parent c744bef7c7
commit 39df8243b7

View File

@@ -48,6 +48,9 @@ class Albums_Controller extends Items_Controller {
}
}
// Sort albums first (http://galleryproject.org/node/88378)
$album->sort_column = "type` ASC, `".$album->sort_column;
$page = $input->get("page", "1");
$children_count = $album->viewable()->children_count();
$offset = ($page - 1) * $page_size;