Sorting measurements, location for filename, updated method