Add sort questions logic to quiz model.