Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fixed sorting for contracts.
James Cole204e521ba40f
diff --git a/app/Models/Bill.php b/app/Models/Bill.phpindex e1196585c0..c976459a11 100644--- a/app/Models/Bill.php+++ b/app/Models/Bill.php@@ -39,8 +39,8 @@ use Illuminate\Database\Eloquent\Model;* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\Bill whereSkip($value)* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\Bill whereNameEncrypted($value)* @method static \Illuminate\Database\Query\Builder|\FireflyIII\Models\Bill whereMatchEncrypted($value)- * @property-read \Carbon\Carbon $nextExpectedMatch- * @property-read \Carbon\Carbon $lastFoundMatch+ * @property \Carbon\Carbon $nextExpectedMatch+ * @property \Carbon\Carbon $lastFoundMatch*/class Bill extends Model{diff --git a/app/Repositories/Bill/BillRepository.php b/app/Repositories/Bill/BillRepository.phpindex b86eefe26c..eb43b0cf83 100644--- a/app/Repositories/Bill/BillRepository.php+++ b/app/Repositories/Bill/BillRepository.php@@ -97,7 +97,10 @@ class BillRepository implements BillRepositoryInterface$set = $set->sortBy(function (Bill $bill) {- return strtolower($bill->name);++ $int = $bill->active == 1 ? 0 : 1;++ return $int.strtolower($bill->name);});