Election officials had declared then-Prime Minister Viktor Yanukovych the winner of that balloting , but the Supreme Court threw out the results because of fraud and it ordered a December re-run .