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