sorting file permissions