diff --git a/omeroweb/webclient/show.py b/omeroweb/webclient/show.py index 601bcab245..2929f1d703 100644 --- a/omeroweb/webclient/show.py +++ b/omeroweb/webclient/show.py @@ -276,7 +276,7 @@ def _load_first_selected(self, first_obj, attributes): params = omero.sys.ParametersI() params.addId(attributes["id"]) params.page(0, 1) - query = "select img from Image img where img.fileset.id=:id" + query = "select img from Image img where img.fileset.id=:id order by img.id" first_image = self.conn.getQueryService().findAllByQuery( query, params, self.conn.SERVICE_OPTS )[0]