Rearrange task ID parameters for better sorting.