resultsByLengthDesc property

List<Surah> get resultsByLengthDesc

Get results sorted by number of ayahs (descending)

Implementation

List<Surah> get resultsByLengthDesc {
  final sortedResults = List<Surah>.from(results);
  sortedResults.sort((a, b) => b.numberOfAyahs.compareTo(a.numberOfAyahs));
  return sortedResults;
}