diff --git a/modules/entry/back/methods/entry/filter.js b/modules/entry/back/methods/entry/filter.js index 5be4521b5..38e38dde9 100644 --- a/modules/entry/back/methods/entry/filter.js +++ b/modules/entry/back/methods/entry/filter.js @@ -159,7 +159,7 @@ module.exports = Self => { ); stmt.merge(conn.makeWhere(filter.where)); stmt.merge(conn.makeGroupBy('b.entryFk')); - stmt.merge(conn.makeOrderBy('t.landed DESC')); + stmt.merge(conn.makeOrderBy(filter.order)); stmt.merge(conn.makeLimit(filter)); let itemsIndex = stmts.push(stmt) - 1; diff --git a/modules/entry/front/main/index.html b/modules/entry/front/main/index.html index 6c08cd0c4..66869a1bb 100644 --- a/modules/entry/front/main/index.html +++ b/modules/entry/front/main/index.html @@ -2,6 +2,7 @@ vn-id="model" url="Entries/filter" limit="20" + order="landed DESC" auto-load="true">