sorting results to dtstamp