Created sort by pictures algorithm
Implemented sort by pictures and date