Sort images by upload time