What I need to do is to combine file names and their sizes in a one container, the file names can repeat and of course the sizes too. And second thing is that I need to sort this container by the sizes co it would be like this after sorting:
1100 -> a.txt
1100 -> a.txt
1200 -> a.txt
1200 -> b.txt
So I can then iterate from smallest to biggest file using for loop. Something similar to arrays in php, but with both values allowed to repeat.