custom-cards / flex-table-card

Highly Flexible Lovelace Card - arbitrary contents/columns/rows, regex matched, perfect to show appdaemon created content and anything breaking out of the entity_id + attributes concept
GNU General Public License v3.0
198 stars 23 forks source link

Uncaught TypeError: a.localeCompare is not a function #61

Closed heikkih closed 2 years ago

heikkih commented 2 years ago

There might be instances where the variables are not a string, and then localeCompare fails.

Adding a toString() will fix this.

I'm adding a PR for this.