PhotoMosaic: make photo order more intuitive

This commit is contained in:
Aaron van Geffen 2023-03-12 12:34:47 +01:00
parent 29bf6af1f8
commit 41881594e9

View File

@ -79,7 +79,7 @@ class PhotoMosaic
return -$priority_diff;
// 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)