|
@@ -47,7 +47,7 @@ var counter = require('../../../public/counter/counter');
|
|
|
var rationItemDAO = function(){};
|
|
|
|
|
|
rationItemDAO.prototype.getRationItemsBySection = function(sectionId,callback){
|
|
|
- rationItemModel.find({"sectionId": sectionId, "$or": [{"isDeleted": null}, {"isDeleted": false} ]},function(err,data){
|
|
|
+ rationItemModel.find({"sectionId": sectionId, "$or": [{"isDeleted": null}, {"isDeleted": false} ]}, null, {sort: {code: 1}}, function(err,data){
|
|
|
if(err) callback(true, "Fail to get items", "")
|
|
|
else callback(false,"Get items successfully", data);
|
|
|
})
|