fixed sort gallery to date