How to order a input_select?

input_select:
  monday:
    options:
      - 1
      - 2
  tuesday:
    options:
      - 1
      - 2
  wednesday:
    options:
      - 1
      - 2
  thursday:
    options:
      - 1
      - 2

This gives:

  • monday
  • thursday
  • tuesday
  • wednesday

Instead of (the wanted):

  • monday
  • tuesday
  • wednesday
  • thursday

How can I define the order (non alphabetical or numerical) of input_selects?

order them in what? You can’t order them in the states page, that will be alphabetical. If you are talking about the UI, just reorder them in the UI.

Thank you, I was trying to order them in the states page.

You can’t. They will always be in alphabetical order.