surahsByLengthAsc property

List<Surah> get surahsByLengthAsc

Get surahs sorted by length (ascending)

Implementation

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