addOrder(Order order)
Session session = sessionFactory.openSession(); //定義session物件 Criteria criteria = session.createCriteria(TbTopic.class); //獲取Criteria範例 criteria.addOrder(Order.desc("createTime")); //設定結果集排序順序 List list = criteria.list();