A federal judge has ordered the writer of a New York Times editorial about Sarah Palin to testify at a hearing concerning her defamation lawsuit.