dart descending order in of objects array code example
Example: dart descending order in of objects array
someObjects.sort((a, b) => a.someProperty.compareTo(b.someProperty));
someObjects.sort((a, b) => a.someProperty.compareTo(b.someProperty));