added sorting for question values