Sorting queue results
The queue() method takes an sort argument. The system uses enum internal to represent sorting, but because PHP lacks a native enum type these can't be used i.e. with the SOAP service.
This page lists the possible values for the sort argument with descriptions for their values. Use none for no sorting at all.
- started: Sort on started datetime.
- jobid: Sort on job ID.
- state: Sort on job state.
- name: Sort on job name.
- published: Sort on published mode.
- task: Sort on current task.
The state, name and task is new options in Batchelor 2.x. Sorting on them provides natural sorting, i.e. the string task1 comes before task2.
The jobid and published is provided for backward compatibility and is accepted even though using them no longer makes sense. The job ID is now an UUID and don't provide any ordering. Publishing results are no longer supported, use social media instead.