Fixed file sorting