sorting: fix Container.SetSortMethod (fixes #15627)
Merge pull request #5977 from Montellese/fix_container_setsortmethod_15627

sorting: fix Container.SetSortMethod (fixes #15627)