flutter sort list of object by number code example
Example: sort a custom list flutter
someObjects.sort((a, b) => a.someProperty.compareTo(b.someProperty));
someObjects.sort((a, b) => a.someProperty.compareTo(b.someProperty));