From: Michael Date: Mon, 23 May 2022 15:31:37 +0000 (+0000) Subject: Sorting by "id asc" makes more sense. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7b91c4f333cdbbea442146fa63fb4e7fa82e345c;p=friendica.git Sorting by "id asc" makes more sense. --- diff --git a/src/Console/MoveToAvatarCache.php b/src/Console/MoveToAvatarCache.php index f158c93400..18948a0e5d 100644 --- a/src/Console/MoveToAvatarCache.php +++ b/src/Console/MoveToAvatarCache.php @@ -87,7 +87,7 @@ HELP; $count = 0; $total = $this->dba->count('contact', $condition); - $contacts = $this->dba->select('contact', ['id', 'avatar', 'photo', 'uri-id', 'url', 'avatar'], $condition, ['order' => ['id' => true]]); + $contacts = $this->dba->select('contact', ['id', 'avatar', 'photo', 'uri-id', 'url', 'avatar'], $condition, ['order' => ['id']]); while ($contact = $this->dba->fetch($contacts)) { echo ++$count . '/' . $total . "\t" . $contact['id'] . "\t" . $contact['url'] . "\t"; $resourceid = Photo::ridFromURI($contact['photo']);