Fixing sort

for good, I hope
also ignoring .bak files