Merge pull request #2032 from nextcloud/bugfix/1811

Force order by id as second sorting key
This commit is contained in:
Julius Härtl
2020-06-19 15:48:50 +02:00
committed by GitHub

View File

@@ -49,7 +49,7 @@ class StackMapper extends DeckMapper implements IPermissionMapper {
public function findAll($boardId, $limit = null, $offset = null) {
$sql = 'SELECT * FROM `*PREFIX*deck_stacks` WHERE `board_id` = ? AND deleted_at = 0 ORDER BY `order`';
$sql = 'SELECT * FROM `*PREFIX*deck_stacks` WHERE `board_id` = ? AND deleted_at = 0 ORDER BY `order`, `id`';
return $this->findEntities($sql, [$boardId], $limit, $offset);
}