Implementing sort by number on queries

This commit is contained in:
Deluan
2016-03-02 23:20:17 -05:00
parent 757e1992d7
commit 1f31de589a
5 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -29,6 +29,6 @@ func (r *albumRepository) Get(id string) (*domain.Album, error) {
func (r *albumRepository) FindByArtist(artistId string) ([]domain.Album, error) {
var as = make([]domain.Album, 0)
err := r.loadChildren("artist", artistId, &as, "Year")
err := r.loadChildren("artist", artistId, &as, "Year", false)
return as, err
}