Do not try to sort an array of mods (which are hashes)
Fix sorting
Fix deprecation warnings