Refs #10450. Consider the case of duplicated records.
Refs #10450.  Added an optional feature to remove records.

Optional feature to have remove records with duplicated value in sample
log that is to be ordered by.