refboat function needs to sort on corrected seconds before figuring out reference boat