Sort sibs and t.writes to avoid deadlocks.