question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sorting doesn't respect options

See original GitHub issue

The following card seems to sort based on the entity’s name rather than options.name. I’m not sure if this is expected but I found it confusing.

  - type: 'custom:auto-entities'
    card:
      type: 'entities'
    filter:
      include:
        - entity_id: 'device_tracker.josh_laptop'
          options:
            name: 'C'
        - entity_id: 'device_tracker.josh_laptop'
          options:
            name: 'B'
        - entity_id: 'device_tracker.josh_laptop'
          options:
            name: 'A'
    sort:
      method: 'name'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ildar170975commented, Dec 11, 2021

I got your point. There is one more example:

    type: custom:auto-entities
    card:
      type: entities
    entities:
      - entity: sensor.battery_cleargrass_2
        name: 123
      - entity: sensor.battery_life360_papa
        name: 123
    unique: entity
    show_empty: true
    filter:
      include:
        - domain: sensor
          entity_id: sensor.battery_*
    sort:
      method: name

Here the name option is not used for sort.

0reactions
joshuaspencecommented, Feb 20, 2022

Can this be considered a feature request then?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Sort in Excel Rows or Columns Avoid Sort Problems
From the Sort On drop down, select the option that you want. We're sorting on the values in the Gender column, so leave...
Read more >
display of sorted options does not respect "preserveOrder" or ...
We have the issue when there's dependencies between option A => B so B is displayed before A even if we set A...
Read more >
Sort data in a range or table - Microsoft Support
In the Sort dialog box, click Options. ... In the Sort Options dialog box, under Orientation, click Sort left to right, and then...
Read more >
Respect Sort Teaching Resources - TPT
Print and distribute with scissors for students to sort the respectful behaviors. This is a great resource to reinforce good manners and ...
Read more >
Sorting is not working - Tableau Community
Now I am having a problem is my sorting is not working and I wasn't sure why. ... the sort buttons, but they...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found