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

sorting: fix Container.SetSortMethod (fixes #15627)