add ordering to directories