Section 31

31. Appeals. For the purposes of appeal and revision under the
Code of Criminal Procedure, 1898 (Act V of 1898), an order of deten-
tion under this Act (including an order of detention under S. 5), shall
be deemed to be a sentence of imprisonment for the same period.