# Unexpected sort order in moderation queue when "Priority" order is used

**URL:** <https://meta.discourse.org/t/unexpected-sort-order-in-moderation-queue-when-priority-order-is-used/151242>\
**Category:** Bug\
**Created:** [May 12, 2020, 7:45pm UTC](https://meta.discourse.org/t/unexpected-sort-order-in-moderation-queue-when-priority-order-is-used/151242 "2020-05-12T19:45:38Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Roman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roman/32/157504_2.png) [@Roman](https://meta.discourse.org/u/Roman)\
**Post date:** [May 13, 2020, 8:15pm UTC](https://meta.discourse.org/t/unexpected-sort-order-in-moderation-queue-when-priority-order-is-used/151242/6 "2020-05-13T20:15:59Z")

</div>

Hi @lee-dohm 👋

I couldn’t reproduce this issue locally with the steps you provided. After looking at the code, I confirmed that the `Priority` order is ascending, and `Priority (reverse)` descending. Also, when two items have the same priority, we order them by the `created_at` value in descending order.

Could you check if the `something else` flags have a higher score than the `off-topic` one? The formula takes different things into account to calculate the score.

Let me know and I’ll keep investigating if necessary!

---

_[View the full topic](https://meta.discourse.org/t/unexpected-sort-order-in-moderation-queue-when-priority-order-is-used/151242)._
