sort file list before starting, glob can return random orders