Ignore vi swap files.
Fix bug where attribute checking search could return incorrect results, due to failure to sort docids taken from the keys of a hash table.