mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Sort piggy banks
This commit is contained in:
@@ -65,6 +65,16 @@ class FrontpageController extends Controller
|
|||||||
$info[] = $entry;
|
$info[] = $entry;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// sort by current percentage (lowest at the top)
|
||||||
|
uasort(
|
||||||
|
$info,
|
||||||
|
static function (array $a, array $b) {
|
||||||
|
return $a['percentage'] <=> $b['percentage'];
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
$html = '';
|
$html = '';
|
||||||
if (0 !== count($info)) {
|
if (0 !== count($info)) {
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user