Mario
ย ยทย Developer

Sorting Key for generated children from variable not working as expected

Actions & Logic
Resolved

Hi all,

i need to add some 'sort' functions to a list of documents. To do that, i'm using the 'Sort List Items' option available in 'value' field.

When i choose to sort from a 'Firebase Document' field (i.e 'name') it works like a charm. ['name' typefield is a string].

But when i try to sort by the 'price' field (i.e "150") [actually set in firebase as String also] i doesn't work.

Is there any limitation to this? It will work if the 'price' field in database was 'integer' or 'number' type?

What have you tried so far?

Nothing for now. But i'll try to use some custom function to verify the List.sort() function result.

Did you check FlutterFlow's Documentation for this topic?
Yes
3
1 reply