Bug (off by one) fix: oversized job IDs could lead to non-null-terminated
strings, that could lead to infinite loops (due do changing comparison
results) while sorting.