Rearrange TODO according to priority.