Toby Zerner 7ff57e1ba4 Refactor sticky order clause into a subquery
Based on some limited testing, using a subquery seems to outperform a
join in this case (the join was invoking a temporary table, which is
always a bad sign).

This also adds logic to fix a bug where sticky discussions would remain
at the top even when marked as read using the "mark all as read" button.
I thought we had an open issue for this somewhere, but I can't seem to
find one. ref #988 #1003
2017-11-08 11:34:37 +10:30
..
2017-09-29 12:35:59 +09:30
2015-07-22 10:14:20 +09:30
2017-07-22 12:09:36 +09:30
2015-10-11 11:43:13 +10:30
2015-10-11 11:43:13 +10:30
2016-11-16 15:46:23 +10:30
2015-10-11 11:43:13 +10:30
2017-01-01 22:46:59 +01:00