Reorder commands to put the more useful ones first.