sort questions in generator script