He served as member of the
New York National Guard from 1901 to 1906. In the early 1900s he was a member of the Albany
Board of Aldermen. In 1908 Sanford was elected
Albany County District Attorney and served until 1914. Sanford was elected as a
Republican to the
Sixty-fourth,
Sixty-fifth, and
Sixty-sixth Congresses, serving from March 4, 1915, to March 3, 1921. He declined to be a candidate for reelection in 1920, and returned to practicing law. From 1921 to 1940 he served as member of the New York State Board of Law Examiners. ==Death and burial==