# \[בקשת תכונה\] יכולת להתאים את סדר הגדרות סוג הרשימה

**URL:** https://meta.discourse.org/t/feature-request-ability-to-adjust-order-of-list-type-settings/209338
**Category:** Feature
**Tags:** completed
**Created:** [16 בנובמבר,‏ 2021,‏ 7:12pm UTC](https://meta.discourse.org/t/feature-request-ability-to-adjust-order-of-list-type-settings/209338 "2021-11-16T19:12:38Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [16 בנובמבר,‏ 2021,‏ 7:12pm UTC](https://meta.discourse.org/t/feature-request-ability-to-adjust-order-of-list-type-settings/209338/1 "2021-11-16T19:12:39Z")

</div>

## Background

Adding a list type settings to a Discourse theme/plugin is nice and convenient with:

```yaml
custom_setting:
  type: list
  list_type: simple
  description:
    en: "my description."

```

However, I’ve often found that whenever I create these types of settings, at one point or another I end up needing to adjust the order of the items. I usually either use flexbox’s `order` property to resolve this or manually edit the settings.

I was reminded about this with @Nick_Chomey [comment](https://meta.discourse.org/t/custom-header-links/90588/131) on the Custom Header Links theme.

## Feature Request

I think it might be convenient to add the ability to adjust the order of all settings of `type: list` as it could be beneficial for quick adjustments to the order and helpful for those without much CSS knowledge.

This is not an urgent feature request by any means, but I think it could be helpful nonetheless.

**Here’s what I was thinking it might look like:**

 ![Example List Setting](https://global.discourse-cdn.com/meta/original/3X/1/6/1615e699f7b633d880de0acae297ce9d5825f642.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [17 בנובמבר,‏ 2021,‏ 5:19am UTC](https://meta.discourse.org/t/feature-request-ability-to-adjust-order-of-list-type-settings/209338/2 "2021-11-17T05:19:45Z")

</div>

I think we already had a similar control used in Discourse Reactions:

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/a/aa2e2a1c6502af9e018238f4c8e85c95a992eb62.png)

> <https://github.com/discourse/discourse-reactions/blob/main/config/settings.yml#L14>

Not sure if we should add this to simple list or not, but a lot of the internals are already there.

Perhaps @j.jaffeux already knows of a control you can use for your particular use case in themes.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [17 בנובמבר,‏ 2021,‏ 8:38am UTC](https://meta.discourse.org/t/feature-request-ability-to-adjust-order-of-list-type-settings/209338/3 "2021-11-17T08:38:13Z")

</div>

No objection from me to move this logic higher in the component hierarchy.

@pmusaraj I can’t recall did you already do something similar?

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [17 בנובמבר,‏ 2021,‏ 1:35pm UTC](https://meta.discourse.org/t/feature-request-ability-to-adjust-order-of-list-type-settings/209338/4 "2021-11-17T13:35:36Z")

</div>

No, I haven’t done something similar to this, adding this to regular simple lists would be nice.

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [2 בפברואר,‏ 2022,‏ 6:00pm UTC](https://meta.discourse.org/t/feature-request-ability-to-adjust-order-of-list-type-settings/209338/5 "2022-02-02T18:00:49Z")

</div>

Was eager to get this feature available, so I created a PR for it based off of the `emoji-value-list`:

[https://github.com/discourse/discourse/pull/15775](https://github.com/discourse/discourse/pull/15775)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [4 בפברואר,‏ 2022,‏ 10:25am UTC](https://meta.discourse.org/t/feature-request-ability-to-adjust-order-of-list-type-settings/209338/6 "2022-02-04T10:25:51Z")

</div>

Thanks for adding this feature @keegan, great work!

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [4 בפברואר,‏ 2022,‏ 10:26am UTC](https://meta.discourse.org/t/feature-request-ability-to-adjust-order-of-list-type-settings/209338/7 "2022-02-04T10:26:24Z")

</div>


