updated,
guid,
link,
- date_entered,
- last_read,
+ SUBSTRING(date_entered,1,16) AS date_entered,
+ SUBSTRING(last_read,1,16) AS last_read,
comments,
ttrss_feeds.feed_url AS feed_url,
ttrss_feeds.title AS feed_title
FROM
ttrss_entries,ttrss_feeds
WHERE
- feed_id = ttrss_feeds.id $marked_qpart $unread_qpart");
+ feed_id = ttrss_feeds.id $marked_qpart $unread_qpart
+ ORDER BY ttrss_entries.id");
} else if ($schema_version == 2) {
updated,
guid,
link,
- date_entered,
- last_read,
+ SUBSTRING(date_entered,1,16) AS date_entered,
+ SUBSTRING(last_read,1,16) AS last_read,
comments,
ttrss_feeds.feed_url AS feed_url,
ttrss_feeds.title AS feed_title
WHERE
ttrss_user_entries.owner_uid = '$owner_uid' AND
ref_id = ttrss_entries.id AND
- feed_id = ttrss_feeds.id $marked_qpart $unread_qpart");
+ feed_id = ttrss_feeds.id $marked_qpart $unread_qpart
+ ORDER BY ttrss_entries.id");
} else {