sort process instances by id if same start times w/ burnettk

This commit is contained in:
jasquat 2022-06-09 15:03:00 -04:00
parent a0927638aa
commit 1bd4314778

View File

@ -189,7 +189,7 @@ def process_instance_list(process_model_id, page=1, per_page=100):
process_instances = (
ProcessInstanceModel.query.filter_by(process_model_identifier=process_model.id)
.order_by(ProcessInstanceModel.start_in_seconds.desc())
.order_by(ProcessInstanceModel.start_in_seconds.desc(), ProcessInstanceModel.id.desc())
.paginate(page, per_page, False)
)