From 9853fa1106b5870b3b3fe02d4bade41994f8b9f9 Mon Sep 17 00:00:00 2001 From: James Hall <41731916+JPHall-DLS@users.noreply.github.com> Date: Mon, 27 Jan 2020 16:44:10 +0000 Subject: [PATCH] SCI-9003 - Added order by dataCollectionId to DataCollection query Fix by @NigelWilson to prevent multiple data collections from different detectors with the same start time from constantly switching places when re-fetching from ISPyB. --- api/src/Page/DC.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Page/DC.php b/api/src/Page/DC.php index 5b817119c..58a3b3c17 100644 --- a/api/src/Page/DC.php +++ b/api/src/Page/DC.php @@ -505,7 +505,7 @@ function _data_collections($single=null) { WHERE $sess[2] $where3 - ORDER BY sta DESC"; + ORDER BY sta DESC, id DESC"; $dcs = $this->db->paginate($q, $args); $this->profile('main query');