Where the Supreme Court or the District Court has quashed any information or indictment or any count thereof or the Supreme Court or District Court in its summary jurisdiction, in any proceedings to which the Crown was a party, has quashed any application made under section 246 (1) of the Criminal Procedure Act 1986 or any charge specified in such an application, or the Land and Environment Court in its summary jurisdiction, in any proceedings to which the Crown was a party, has quashed any application made under section 41 (1) of the Land and Environment Court Act 1979 or any charge specified in such an application, the Attorney-General or the Director of Public Prosecutions may appeal to the Court of Criminal Appeal against the order made, and such court may thereupon determine the appeal and if the appeal is sustained may make such order for the prosecution of the trial as may be necessary.