(5) If the court orders that a by-election be held, it may make such order as it considers just against a person whose act or omission unlawfully affected the result of the election, for the compensation of candidates at that election. 1996, c. 32, Sched., s. 83 (5).