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

 changed sort and comparator to recive a list of Range intead of dirs so that i could reverse the orders on the dashboard