If no multiline sms, you can easily run in terminal cat 1st 2nd | sort -u -k3 -t, > new to merge two files. (-u is for unique, -k3 is for sorting by date, -t, is for separator ,) with multiline sms, it's much easier if you copy the files to your windows/linux/mac to process. I can provide a python script if you need