# קישור ישיר להצגת חברי קבוצה בסדר יורד לא עובד

**URL:** https://meta.discourse.org/t/direct-link-to-show-group-members-in-descending-order-not-working/256623
**Category:** Bug
**Tags:** groups
**Created:** [1 במרץ,‏ 2023,‏ 6:19am UTC](https://meta.discourse.org/t/direct-link-to-show-group-members-in-descending-order-not-working/256623 "2023-03-01T06:19:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sygou](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@sygou](https://meta.discourse.org/u/sygou)
#### Post date: [1 במרץ,‏ 2023,‏ 6:19am UTC](https://meta.discourse.org/t/direct-link-to-show-group-members-in-descending-order-not-working/256623/1 "2023-03-01T06:19:51Z")

</div>

- For listing members in a group, the [backend code](https://github.com/discourse/discourse/blob/71be74ffd32b39912d63c790a6547c11e96676f9/app/controllers/groups_controller.rb#L227) accepts `order` and `asc` parameters to order by a specific field in ascending/descending order. When the `asc` parameter is present and non-blank, it is the ascending order, otherwise descending.
- The [frontend code](https://github.com/discourse/discourse/blob/71be74ffd32b39912d63c790a6547c11e96676f9/app/assets/javascripts/discourse/app/controllers/group-index.js#L14) of the group members page also seems to be able to parse query parameters and pass to the backend. `asc` is `true` by default on the frontend.

When I navigate to this link: [https://try.discourse.org/g/trust\_level\_2?order=added\_at&asc=](https://try.discourse.org/g/trust_level_2?order=added_at&asc=), I expect this to be a **direct link** to show me TL2 members ordered by Added time in **descending** order, without having to manually click on the table header to toggle ordering.

However the actual behavior is that: it shows TL2 members ordered by Added time in **ascending** order, yet with a “chevron-down” icon (suggesting that it should have shown in descending order instead):

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/b/0/0b0847bd150eff82184a2abbe17e884c5cdff948.png)

Looking at the Network tab in DevTools, the page issued a request of [https://try.discourse.org/groups/trust\_level\_2/members.json?offset=0&order=added\_at&asc=false&filter=](https://try.discourse.org/groups/trust_level_2/members.json?offset=0&order=added_at&asc=false&filter=), instead of [https://try.discourse.org/groups/trust\_level\_2/members.json?offset=0&order=added\_at&asc=&filter=](https://try.discourse.org/groups/trust_level_2/members.json?offset=0&order=added_at&asc=&filter=).

As all URL parameters are strings, `asc=false` will be considered as non-blank by the `params[:asc] && params[:asc].present?` logic, thus returning ascending result. Perhaps the frontend code should convert the Boolean `false` value of `asc` to an empty string in the URL parameter?

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [3 במרץ,‏ 2026,‏ 7:20pm UTC](https://meta.discourse.org/t/direct-link-to-show-group-members-in-descending-order-not-working/256623/2 "2026-03-03T19:20:30Z")

</div>

Thanks for checking this, `asc=false` will work as of the change here

> [@Honor the “asc” querystring parameter on group sort](https://meta.discourse.org/t/honor-the-asc-querystring-parameter-on-group-sort/397541/2):
>
> Yes thanks for mentioning it, I’ve made an update here: [https://github.com/discourse/discourse/pull/38219](https://github.com/discourse/discourse/pull/38219) So next time you update Discourse, this should work to show the list in descending order /g/trust\_level\_0?order=last\_seen\_at&asc=false

---

<div class="post-metadata">

### Author: ![Jesse\_Starks](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesse_starks/32/545067_2.png) [@Jesse\_Starks](https://meta.discourse.org/u/Jesse_Starks)
#### Post date: [3 במרץ,‏ 2026,‏ 8:59pm UTC](https://meta.discourse.org/t/direct-link-to-show-group-members-in-descending-order-not-working/256623/3 "2026-03-03T20:59:10Z")

</div>

Hey that’s awesome… you rock! Thanks!

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [1 באפריל,‏ 2026,‏ 12:16pm UTC](https://meta.discourse.org/t/direct-link-to-show-group-members-in-descending-order-not-working/256623/4 "2026-04-01T12:16:34Z")

</div>


