Use PK as secondary sorting criteria (as in other places)

This commit is contained in:
phl0
2025-02-02 11:57:19 +01:00
parent de5be2f111
commit cc6bd962ea
2 changed files with 3 additions and 1 deletions

View File

@@ -640,6 +640,7 @@ class Logbook extends CI_Controller {
$this->db->group_end();
$this->db->order_by($this->config->item('table_name').".COL_TIME_ON", "desc");
$this->db->order_by($this->config->item('table_name').".COL_PRIMARY_KEY", "desc");
$this->db->limit($count);
$query = $this->db->get();