sort jobs by name to provide stable ordering