Skip to content

Commit

Permalink
Merge pull request #343 from uoregon-libraries/fix/consistent-batch-g…
Browse files Browse the repository at this point in the history
…eneration

cmd/queue-batches: sort issues before queueing
  • Loading branch information
jechols authored Oct 3, 2024
2 parents 01a3237 + 8a23824 commit 1f14f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/queue-batches/batch_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (q *batchQueue) FindReadyIssues(redo bool) {
} else {
ws = schema.WSReadyForBatching
}
var issues, err = models.Issues().InWorkflowStep(ws).BatchID(0).Fetch()
var issues, err = models.Issues().InWorkflowStep(ws).BatchID(0).OrderBy("marc_org_code, lccn, date").Fetch()
if err != nil {
logger.Fatalf("Error trying to find issues: %s", err)
}
Expand Down

0 comments on commit 1f14f53

Please sign in to comment.