* @return ordered questions
*/
public Questions getQuestionsOrderedByNumber(boolean ascending) {
Questions orderByNumber = null;
try {
OrderCriteria criteria = OrderCriteria.defineOrder("number",
ascending);
orderByNumber = (Questions) getEntities(criteria);
} catch (OrderException e) {
log.error("Error in Questions.getQuestionsOrderedByNumber: "
+ e.getMessage());