surahsByLengthDesc property

List<Surah> get surahsByLengthDesc

Get surahs sorted by length (descending)

Implementation

List<Surah> get surahsByLengthDesc {
  final sortedSurahs = List<Surah>.from(surahs);
  sortedSurahs.sort((a, b) => b.numberOfAyahs.compareTo(a.numberOfAyahs));
  return sortedSurahs;
}