fixed sorting bug (due to pad) in rdirs