# Created Topic Sort

**URL:** <https://meta.discourse.org/t/created-topic-sort/321521>\
**Category:** Theme component\
**Created:** [August 13, 2024, 8:03pm UTC](https://meta.discourse.org/t/created-topic-sort/321521 "2024-08-13T20:03:28Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![dsims](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dsims/32/485916_2.png) [@dsims](https://meta.discourse.org/u/dsims)\
**Post date:** [March 27, 2025, 5:04pm UTC](https://meta.discourse.org/t/created-topic-sort/321521/15 "2025-03-27T17:04:18Z")

</div>

figured it out, it needed to clear the PreloadStore

So one can edit your default theme or a new component to add this to the JS:

```plaintext
import { apiInitializer } from "discourse/lib/api";
import { setDefaultHomepage } from "discourse/lib/utilities";
import PreloadStore from "discourse/lib/preload-store";

export default apiInitializer((api) => {
  setDefaultHomepage("latest?order=created&");
  PreloadStore.remove("topic_list");
});

```

and this CSS to remove the Latest tab:

```plaintext
li.nav-item_latest {
    display: none;
}

```

Wish it could stay on the root homepage url, but that will probably take a plugin.

---

_[View the full topic](https://meta.discourse.org/t/created-topic-sort/321521)._
