334. Appeals.

A defendant may appeal against the making of a sexual harm prevention order1. Where the order was made by a court dealing with the defendant in respect of an offence2, the appeal is brought as if the order were a sentence passed on the defendant for the offence3; where the order is made in respect of a finding that the defendant is not guilty of an offence by reason of insanity4 or a finding that the defendant is under a disability and has done the act charged against the defendant in respect of such an offence5, the appeal is