Jo-Wilfried Tsonga recorded his first victory at the Erste Bank Open in Vienna after beating Juan Martin Del Potro for the first time in his career.