added comparator features to order by path, name or date