Skip to content

Commit 8ca212c

Browse files
authored
Order articles by published and created date
1 parent 9936026 commit 8ca212c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libreblog/libreblog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ const getOneRow = async function(uri, table, db) {
446446

447447
const getResultRowsForSeriesPage = async function(uri, db) {
448448
let resultRows = await db.exec({
449-
sql: "SELECT * FROM articles WHERE series_uri = '" + uri + "' AND status = 'Published'",
449+
sql: "SELECT * FROM articles WHERE series_uri = '" + uri + "' AND status = 'Published' ORDER BY published DESC, created DESC",
450450
rowMode: 'object'
451451
});
452452

0 commit comments

Comments
 (0)