sorted images in views proprly