Comparison theorems for temperatures in noncylindrical domains