You do not need to create an additional field, but instead convert the file name to boolean on the fly using CONV (I assume you use this in MySQL), but equivalent functions are available on other RDBMSs).
ORDER BY CONV(photo_file_name,2,2) DESC, created_at
Technically, CONV is a function for converting numbers between different bases, but it accepts string input. It will return 0 if the value is present in the photo_file_name column and NULL if the NULL input.
MySQL CONV