Compare sorted supplemental groups

Makes the `if` statement a little more useful, without arbitrarily running `setgroups()` every time.