Sort files in stream by path or any custom sort comparator