mirror of
https://github.com/sartography/spiffworkflow-backend.git
synced 2025-02-24 13:28:31 +00:00
sort process instances by id if same start times w/ burnettk
This commit is contained in:
parent
a0927638aa
commit
1bd4314778
@ -189,7 +189,7 @@ def process_instance_list(process_model_id, page=1, per_page=100):
|
|||||||
|
|
||||||
process_instances = (
|
process_instances = (
|
||||||
ProcessInstanceModel.query.filter_by(process_model_identifier=process_model.id)
|
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)
|
.paginate(page, per_page, False)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user