Reorder App State Listview Using SortOrder Field

Custom Code

Hi All

I need to reorder a Data Structure list (custom data type) which is stored in App State. Instead of sorting the list by its index, I need to sort it by a field called SortOrder.

Could someone please help me with the code for this? It’s a combination of the 2 solutions provided by Flutterflow in the ListView documentation (it’s similar to the Firebase example but for an App State list)

Thanks in advance

Josh

What have you tried so far?

I have tried writing the custom code for this but can't figure out how to do it

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