changed sort and comparator to recive a list of Range intead of dirs
Merge pull request #1 from Raulserg/master

 changed sort and comparator to recive a list of Range intead of dirs