Closed gsolem closed 4 years ago
Your Change % column seems to be a string, so given that it is sorted correctly. There is no functionality in this component to sort lists so I'm not sure how I can help you. The changePercent attribute of an avanza_stock sensor is a float so you must be doing something with the data. Please provide more info, configuration etc. if you need further help.
@claha You are right, actually I believe this is related to the flex-table component in home assistant and not the Avanza sensor. Sorry for the confusion, I will follow up under the table card component.
Sort by is not sorting as expected. E.g. attached list is set to sort by
changePercent-
but as you can see it is not working out very well.Above is when using the modify to round to a fixed nos. of decimals, e.g.
modify: parseFloat(x).toFixed(2)
. Without using modify on the column, it is sorting just fine: