Adding sheet sorting and threshold line.