thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.18k stars 111 forks source link

[Request] Secondary Sort #443

Open KairuByte opened 1 month ago

KairuByte commented 1 month ago

A secondary sort would be nice. For instance, if I want to sort things so that unavailable items are shown first, and then sort numerically, I am unable to. A use case would be battery level for devices sorted in reverse numerical order, where a dead battery would result in an unavailable state, which would sort below 100%.

ildar170975 commented 1 month ago

You may define more sorting methods using a template option.

jurgen2005 commented 1 month ago

could you provide an example?

ildar170975 commented 1 month ago

Please check here: https://github.com/thomasloven/lovelace-auto-entities/issues/367

TimothyJCowen commented 2 weeks ago

It would be nice if this could be implemented, honestly. The UI of the card is missing a lot of options that the YAML has (which is a separate issue), but also a multi-level sort is a pretty reasonable thing to expect for something like this. Especially since we shouldn't have to use the template option for 99% of the use-cases.