surahsByRevelationOrder property
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;
}