Looking up a hash table for each symbol should be avoided for
performance reasons. In this patch, I assign a unique ID to each
file and use that number to sort symbols.
The other way of doing this would be to use object addresses of files,
but that algorithm fails to make output reproducible. So I had to
add FileId member to InputFile class.