Sorting by "id asc" makes more sense.
This commit is contained in:
parent
68599c7efa
commit
7b91c4f333
|
@ -87,7 +87,7 @@ HELP;
|
||||||
|
|
||||||
$count = 0;
|
$count = 0;
|
||||||
$total = $this->dba->count('contact', $condition);
|
$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)) {
|
while ($contact = $this->dba->fetch($contacts)) {
|
||||||
echo ++$count . '/' . $total . "\t" . $contact['id'] . "\t" . $contact['url'] . "\t";
|
echo ++$count . '/' . $total . "\t" . $contact['id'] . "\t" . $contact['url'] . "\t";
|
||||||
$resourceid = Photo::ridFromURI($contact['photo']);
|
$resourceid = Photo::ridFromURI($contact['photo']);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user