Okay, so what I did might was stupid, but I was determined to examine on my own a lot of things, and experiment a bit with tools. At one point I decided to do this: I had BAM file from RNA-seq, paired-end, and I decided to convert it to fastq file with samtools with and without sorting by read names. FastQC reports on both fastq files were pretty much the same, with one difference: on fastq files that came from name-sorted BAM file, I had huge amount of duplicated sequences, much higher than of those who came from unsorted BAM file. Now I am wondering, why did this happen? How is it possible that amount of duplicated sequences is 50% higher when I name sorted BAM file?
I acted like crazy and did literally all variations: I had a BAM file that was sorted and secondary alignments were removed, and I also had file that wasn't sorted but I removed secondary alignments. File with only removed secondary alignments had exactly same duplication plot as one that wasn't filtered, and file that was both sorted and filtered had exactly same duplication plot as file that was only sorted. I know this is confusing but I did so many stupid comparisons that I find it hard to explain. But this explanation makes a lot of sense so thank you!