Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit f42fd9e

Browse files
Update PHPCrawlerURLCacheBase.php
correct SORT_DESC for link priority
1 parent 9036d1e commit f42fd9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/UrlCache/PHPCrawlerURLCacheBase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function addLinkPriority($regex, $level): void
133133
// Sort url-priortie-array so that high priority-levels come firts.
134134
#PHPCrawlerUtils::sort2dArray($this->url_priorities, 'level', SORT_DESC);
135135
$key_values = array_column($this->url_priorities, 'level');
136-
array_multisort($key_values, SORT_ASC, $this->url_priorities);
136+
array_multisort($key_values, SORT_DESC, $this->url_priorities);
137137

138138
}
139139

0 commit comments

Comments
 (0)