But the judge ruled Alinizi didn't display the "intense drive, desire or urge" to commit sexual offences - a prerequisite for an ESO - based on psychological reports.
But the appeal court has todayruled that the test for what "display" meant was set too high in the original case.
"We are satisfied on the basis of the three psychologists' reports and Mr Alinizi's history of offending that the several statutory prerequisites ... continue to be present."
It has ordered Alinizi be placed under a six-year order starting from Thursday.
"A period of six years should provide an adequate opportunity for the development of a safety plan with protective factors which would safeguard the community."
- AAP