Combinatory process in mainwindow;sorting of the interval with their position;