# Bug in docs plugin: Pinned topics are not at the top

**URL:** <https://meta.discourse.org/t/bug-in-docs-plugin-pinned-topics-are-not-at-the-top/220254>\
**Category:** Bug\
**Tags:** docs, size-m\
**Created:** [March 7, 2022, 9:03am UTC](https://meta.discourse.org/t/bug-in-docs-plugin-pinned-topics-are-not-at-the-top/220254 "2022-03-07T09:03:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)\
**Post date:** [April 5, 2022, 9:08pm UTC](https://meta.discourse.org/t/bug-in-docs-plugin-pinned-topics-are-not-at-the-top/220254/3 "2022-04-05T21:08:24Z")

</div>

I can reproduce this with 2.9.0.beta3. The docs index appears to default to recent activity, and doesn’t sort by pinned status; it does, however, show the correct pinned status by icon.

I pinned the first doc I created, hence it is the “oldest”:

 ![Screenshot 2022-04-05 at 13-50-02 Docs - Sandbox Discourse Kit](https://global.discourse-cdn.com/meta/original/3X/1/3/13642c3d2c9a30c9033268f6aceba84f59a19263.png)

I updated the pinned doc, making it the more recent activity:

 ![Screenshot 2022-04-05 at 13-50-27 Docs - Sandbox Discourse Kit](https://global.discourse-cdn.com/meta/original/3X/a/e/aef76e9ec5ef20afa1d94119c83a9d02a20a0fd5.png)

And added a new doc, which then becomes the most recent:

 ![Screenshot 2022-04-05 at 13-51-38 Docs - Sandbox Discourse Kit](https://global.discourse-cdn.com/meta/original/3X/c/6/c62db350473e95fe3a85abe74304afb04b12b739.png)

* * *

I changed the pinned status on the topic (meaning the discussion, the “docs view” does not show the pinned status).

 ![Screenshot from 2022-04-05 13-56-16](https://global.discourse-cdn.com/meta/original/3X/5/a/5a36f2221ed6b2240fc4dc0e6927404d302252d2.png)

And it updated on the docs index:

 ![Screenshot 2022-04-05 at 14-09-18 Docs - Sandbox Discourse Kit](https://global.discourse-cdn.com/meta/original/3X/2/d/2d3aa530771be8058597a506251aa3298c9eeab6.png)

* * *

Notes:

- I tried a category and global pin: same results
- Any activity bumps the doc in the index: the more recently discussed topics will be at the top

---

_[View the full topic](https://meta.discourse.org/t/bug-in-docs-plugin-pinned-topics-are-not-at-the-top/220254)._
