functions to sort and extract data (checked for calibration tests,conc79,conc39)