Sort display of topics Alphabetically

AI 生成的摘要

Users across multiple Discourse communities have long requested the ability to sort topics alphabetically by title, citing use cases such as organizing user guides, council meeting recordings, staff directories, policy documents, and sequential video lessons. While Discourse previously removed alphabetical sorting due to its nonsensical behavior in the ‘Latest’ view, users have found workarounds—like manipulating topic creation dates or manually maintaining index threads. The Docs plugin supports alphabetical sorting of categories and tags, and now, thanks to an experimental /filters endpoint and a recent pull request (#22293), users can sort topics by title using order:title-asc or order:title-desc in the filter URL (e.g., https://meta.discourse.org/filter?q=order%3Atitle-asc%20categories%3Abug). Although admins cannot yet set this as a default view for a category, the feature is now available for testing. Seth_Godin confirmed this meets his need for ordered video lessons, and nat announced the feature’s availability and closed the thread. Users are encouraged to test the filter and bookmark the link for future use.

Currently the list of topics can be sorted by replies, views and activity.
What about sorting by title?

Example: Here are some user guides I have created for users, I used a nomenclature for the titles. It would he helpful if the users could sort on title.

9 个赞

I’d like that feature, too. In my case, it is for a category with topics that I’d like sorted by date as each topic has a video recording of a council meeting and it would easiest to digest them in chronological order in terms of finding meetings and having a sense of what is going on in the town.

I found a work around if anyone else reads this thread looking for how they can sort their topics in a category in chronological order of some sort. See this thread:

https://meta.discourse.org/t/is-it-possible-to-change-the-creation-date-of-topics-as-admin-so-can-order-topics-chronologically/81709

5 个赞

Just wanted to cross reference a post of a user asking for support as they had a difficult time finding a meeting thread in a category. If sorting be alphanumeric was available, this would not be an issue for us.

https://discuss.jordanbpeterson.community/t/microaggressions-are-fundamentally-different-from-aggressions-how-to-break-down-this-kind-of-nonsense/312/15?u=balupton

Here is the category in question:

https://discuss.jordanbpeterson.community/c/meetings

Hi,

The ability to sort a topic list alphabetically by title would also be helpful for when Discourse is deployed as an intranet.

For instance, in MacOS, Windows, Dropbox, Google Drive, etc. “sort by name” is a default or common way to organize files. When Discourse is being used for a staff directory, to provide easy access to policy documents, to provide notes from a regular meeting, and for other common use cases in an intranet, ‘sort by name’ would be a natural and preferred way to organize content within a Category.

1 个赞

I’d use this to list topics tagged #recommendations.

Currently I manually maintain an “index” topic with links in alphabetical order to individal recommendations topics, and an automated index page with alphabetical sorting by title would save me a lot of time

https://se23.life/t/list-of-local-recommendations-in-se23-trades-shops-services-etc/763

2 个赞

这太棒了

1 个赞

按字母顺序排序对我而言也很有用。
我正在构建一个带有标签的目录,我认为按标题对牙医进行排序是值得的。
我会强制他们首先添加自己的姓名。
https://francais-a-londres.org/tag/dentistes

4 个赞

我不明白为什么你不能按列表中的任何列标签进行排序:

image

目前你可以按回复数、浏览量和活动情况进行排序……为什么不能按主题排序呢?

1 个赞

该功能已被移除,因为有人指出按字母顺序排序对“最新”视图毫无意义。

对于知识库,是否考虑改用知识探索器插件的 /docs 视图?

4 个赞

是否有计划重新启用按字母顺序排列主题的功能?

目前还不行,不过从文档的上下文来看这确实合理。https://meta.discourse.org/docs。确实,文档功能允许您按字母顺序排序。

2 个赞

如果我没记错的话,Docs 只允许按字母顺序对分类和标签进行排序,而不是主题。我很希望能实现这一点,以便我能以特定的顺序展示文档。

编辑:我错了。您可以点击主题列表的标题进行排序——这并不明显,因为默认情况下没有箭头指示活动排序。

感谢您指出这一点。有人知道使用 Docs 插件是否可以默认按字母顺序排序吗?目前需要用户手动排序。

请看我分享的关于按字母顺序排序的修改的主题。我希望他们能以某种方式正式将其集成到 Docs 中 修改 Discourse Docs 以仅允许按标题排序 - dev - Discourse Meta

1 个赞

非常感谢!我真的很欣赏您的方法,我一定会试试的!我也同意,字母排序是一个很棒的功能,我们很多人都非常需要。再次感谢!

1 个赞

感谢您让这个帖子保持活跃。我知道大家对于字母排序 NOT 成为一个选项有很多强烈的情绪,并且提出了许多用例,但都被对标签和其他排序方式的辩护所回应。

我很希望有人能为我提出一个处理以下用例的方法:

我有 25 个主题,每个主题都包含一个供讨论的视频。

人们按正确的顺序观看视频非常重要。

所以,如果我给主题编号并进行字母排序,我们就完成了。用户可以从顶部开始,然后向下进行。他们只需要记住上次在哪里停止,下次继续。

但是

如果我使用任何现有的排序选项,它们都会被打乱。唯一可能的解决方法是创建日期,但这使得我很难以任何有用的方式编辑列表。

是我误解了我的用例,还是我被卡住了?我问了机器人,但它放弃了。

谢谢。

@codinghorror Jeff,不确定这是否引起了您的注意……

感谢您的考虑。

您能否编辑主题时间戳以创建您需要的顺序?例如,我将这些时间戳设置为相隔 1 小时(00:00、01:00、02:00),然后如果我想稍后添加“Lesson 1.1、Lesson 1.2 等”,就可以在它们之间插入多达 59 个额外主题(通过一些时间戳调整)。这对您有用吗?

(按“创建时间”排序的类别)。

不过,一旦主题有了回复,更改时间戳也会更改回复的时间戳,但如果您添加新主题,这可能不会影响任何内容。

不过我承认,这并不能替代允许类别中设置主题顺序,这可能是理想的解决方案。 :slight_smile:

1 个赞

是的,这是个变通方法,但当然,社区构建的软件解决方案的优点在于,也许我们可以避免这种情况……

谢谢 @JammyDodger

2 个赞

我们目前有一个新的 /filters 端点供登录用户使用。(完整主题 在此处)

我与 @tgxworld 核实过,似乎实现 order:title 并不难,他已经添加了一个待审核和合并的补丁。

想知道这是否适合你?

3 个赞

如果管理员可以为给定主题设置此选项作为默认选项,那就能完成工作,谢谢 @nat

有什么方法可以知道它是否在工作吗?