mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-20 11:19:16 +00:00
Fix bad sort in bill controller
This commit is contained in:
@@ -121,7 +121,13 @@ class BillController extends Controller
|
|||||||
usort(
|
usort(
|
||||||
$journals,
|
$journals,
|
||||||
static function (array $left, array $right) {
|
static function (array $left, array $right) {
|
||||||
return $left['date']->gte($right['date']) ? 1 : 0;
|
if($left['date']->gt($right['date'])) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
if($left['date']->lt($right['date'])) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user