Sort results and expected results before comparing them.
Fix compiler warning.
Ignore Vim swap files.