We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8f56a1 commit 4d1f6abCopy full SHA for 4d1f6ab
src/Reporting/Report.php
@@ -279,7 +279,10 @@ public function withPages($preferCache = false)
279
280
$this->pages = collect($files)
281
->map(fn ($file) => YAML::parse(File::get($file)))
282
- ->map(fn ($yaml) => (new Page($yaml['id'], $yaml['data'], $this))->setResults($yaml['results']));
+ ->map(fn ($yaml) => (new Page($yaml['id'], $yaml['data'], $this))->setResults($yaml['results']))
283
+ ->sortBy
284
+ ->url()
285
+ ->values();
286
287
if ($this->isGenerated()) {
288
Cache::put($this->cacheKey(static::PAGES_CACHE_KEY_SUFFIX), $this->pages);
0 commit comments