Fix sorting insert.