# 按创建日期排序显示最新列表

**URL:** https://meta.discourse.org/t/show-latest-list-sorted-by-creation-date/140832
**Category:** Feature
**Created:** [2020年二月6日 09:07 UTC](https://meta.discourse.org/t/show-latest-list-sorted-by-creation-date/140832 "2020-02-06T09:07:45Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Fer\_Cazares](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fer_cazares/32/183390_2.png) [@Fer\_Cazares](https://meta.discourse.org/u/Fer_Cazares)
#### Post date: [2020年七月6日 15:15 UTC](https://meta.discourse.org/t/show-latest-list-sorted-by-creation-date/140832/4 "2020-07-06T15:15:59Z")

</div>

我（算是）在我的论坛上通过重定向链接解决了这个问题，感谢这篇帖子：

> [@Redirect Category to External URL](https://meta.discourse.org/t/redirect-category-to-external-url/85691/13):
>
> Is there some specific version of the API I should be using for this?

* * *

* * *

将 `yoursite.com` 替换为您网站的名称。

[quote=]  
以下脚本在通过“自定义”添加到 `<head>` 后可实现预期效果：

```plaintext
<script type="text/discourse-plugin" version="0.8.19">
api.onPageChange(() => {
	if ( window.location.href === "https://yoursite.com/latest" ) {
		window.location.replace( "https://yoursite.com/latest?order=created" );
	}
});
</script>

```

[/quote]

**注意：** 如果您是开发者，请理解我并不是。请不要因此讨厌我 😝 我知道这并不是正确的做法。

---

_[View the full topic](https://meta.discourse.org/t/show-latest-list-sorted-by-creation-date/140832)._
