Index: web-module/src/main/java/egovframework/api/arms/module_reqcomment/controller/UserReqCommentController.java =================================================================== diff -u -rcaea4fdbf51d7a21ef8fb1eef9db5f1319113d6f -rc55701f39185aa4c1a54a05b0c46b96803096572 --- web-module/src/main/java/egovframework/api/arms/module_reqcomment/controller/UserReqCommentController.java (.../UserReqCommentController.java) (revision caea4fdbf51d7a21ef8fb1eef9db5f1319113d6f) +++ web-module/src/main/java/egovframework/api/arms/module_reqcomment/controller/UserReqCommentController.java (.../UserReqCommentController.java) (revision c55701f39185aa4c1a54a05b0c46b96803096572) @@ -16,6 +16,7 @@ import egovframework.com.ext.jstree.springHibernate.core.controller.SHVAbstractController; import egovframework.com.ext.jstree.support.util.ParameterParser; import lombok.extern.slf4j.Slf4j; +import org.hibernate.criterion.Order; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -63,8 +64,8 @@ searchReqCommentDTO.setWhere("c_pdservice_link", c_pdservice_link); searchReqCommentDTO.setWhere("c_req_link", c_req_link); searchReqCommentDTO.setWhere("c_review_link", c_review_link); + searchReqCommentDTO.setOrder(Order.desc("c_id")); List resultList = reqComment.getChildNode(searchReqCommentDTO); - ModelAndView modelAndView = new ModelAndView("jsonView"); modelAndView.addObject("result", resultList); return modelAndView;