section 686(4)


686(4) If an appeal is from an acquittal or verdict that the appellant or respondent was unfit to stand trial or not criminally responsible on account of mental disorder, the court of appeal may (a) dismiss the appeal; or (b) allow the appeal, set aside the verdict and (i) order a new trial, or (ii) except where the verdict is that of a court composed of a judge and jury, enter a verdict of guilty with respect to the offence of which, in its opinion, the accused should have been found guilty but for the error in law, and pass a sentence that is warranted in law, or remit the matter to the trial court and direct the trial court to impose a sentence that is warranted in law.