fix ordering of symlinks to dirs