forked from Public/pics
PhotoMosaic: make photo order more intuitive
This commit is contained in:
parent
29bf6af1f8
commit
41881594e9
@ -79,7 +79,7 @@ class PhotoMosaic
|
|||||||
return -$priority_diff;
|
return -$priority_diff;
|
||||||
|
|
||||||
// In other cases, we'll just show the newest first.
|
// In other cases, we'll just show the newest first.
|
||||||
return $a->getDateCaptured() > $b->getDateCaptured() ? -1 : 1;
|
return $a->getDateCaptured() <=> $b->getDateCaptured();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static function daysApart(Image $a, Image $b)
|
private static function daysApart(Image $a, Image $b)
|
||||||
|
Loading…
Reference in New Issue
Block a user