New unit test and bug fix for incorrect integer sorting in remote groups.