Some small updates to piggy banks.

This commit is contained in:
James Cole
2014-12-28 18:03:35 +01:00
parent 87fbf9c1a5
commit 40892ccfa7
6 changed files with 230 additions and 221 deletions

View File

@@ -206,7 +206,7 @@ class PiggyBank implements CUD, CommonDatabaseCalls, PiggyBankInterface
*/
public function get()
{
return $this->getUser()->piggyBanks()->where('repeats', 0)->get();
return $this->getUser()->piggyBanks()->where('repeats', 0)->orderBy('name')->get();
}
/**