Working on fixing the file sorting or ranking