The program PhotoMove should ideally sort photos based on the date they were taken. However, if the photos are being moved to the wrong folders and there seems to be no logic in the sorting, it may suggest an issue with the program or how it is configured. Verify that the program is set to sort by date and check if there are any additional settings that may affect the sorting. It is also possible that there could be an error within the filing system itself. Consider contacting the developer of PhotoMove or seeking technical support for assistance in resolving the issue.