Text this: Optimal Ordering of Conflicting Objects and the Traveling Salesman Problem