File utils for file sort