(part7) Add sort_by_format (not finished)
(part8) Fix Gallery.item template