3691 setgroups() needs a sorted GID list for more than 16 groups
Reviewed by: Marcel Telka <marcel@telka.sk>
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Approved by: Richard Lowe <richlowe@richlowe.net>
	[illumos-gate merge]

commit b77dfcc8362f3695ece944d5bb504276753a40f9
    3691 setgroups() needs a sorted GID list for more than 16 groups