fix: match the code to the videos

This commit is contained in:
Inanc Gumus
2019-12-09 20:40:03 +03:00
parent be7bc962f7
commit b8fec94208
4 changed files with 52 additions and 56 deletions

View File

@ -20,9 +20,9 @@ func main() {
{title: "hobbit", price: 25},
}
sort.Sort(l)
sort.Sort(sort.Reverse(l))
sort.Sort(byReleaseDate(l))
// sort.Sort(l)
// sort.Sort(sort.Reverse(l))
// sort.Sort(byReleaseDate(l))
sort.Sort(sort.Reverse(byReleaseDate(l)))
fmt.Print(l)