surahsByRevelationOrder property

List<Surah> get surahsByRevelationOrder

Get surahs sorted by revelation order

Implementation

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