mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Enable column sorting main topic list
This commit is contained in:
@ -42,6 +42,10 @@ module TopicQuerySQL
|
||||
end
|
||||
end
|
||||
|
||||
def order_by_category_sql(dir)
|
||||
"CASE WHEN categories.id = #{SiteSetting.uncategorized_category_id.to_i} THEN '' ELSE categories.name END #{dir}"
|
||||
end
|
||||
|
||||
# If you've clearned the pin, use bumped_at, otherwise put it at the top
|
||||
def order_nocategory_with_pinned_sql
|
||||
"CASE
|
||||
|
Reference in New Issue
Block a user