diff --git a/photos/actions.js b/photos/actions.js
index <HASH>..<HASH> 100644
--- a/photos/actions.js
+++ b/photos/actions.js
@@ -43,7 +43,7 @@ actions.searchPhotos = (req, res, next) => {
 		.then((flattenedPhotos) => {
 			return _.sortBy(flattenedPhotos, [
 				(photo) => {
-					return photo.dateCreated ? photo.dateCreated.valueOf() * -1 : photo.datePublished.valueOf() * -1;
+					return photo.dateCreated ? photo.dateCreated.valueOf() * -1 : photo.datePublished ? photo.datePublished.valueOf() * -1 : 0;
 				}
 			]);
 		})
Hmmm. Apparently `datePublished` can be falsy, so guard against it.

Need to figure out exactly where I left off with this...