Need to figure out why sorting isn't workinggit add sort_and_elim_dupes_in_dbfile.pro ! Get into write_dbfiles_3 and check out sorting info