Open MariusStorhaug opened 1 year ago
Can be done multiple ways...
Alternative 1:
Be sure to always include the following when Sort-Object
is used.
Sort-Object (...) -Culture 'en-US'
Alternative 2 If we add the following block on scripts, it would not be something that we would need to think about for new usage of Sort-Object.
$PSDefaultParameterValues = @{
'Sort-Object:Culture'='en-US'
}
Hey @MariusStorhaug, good call. I haven't seen this issue in quite some time actually. However, if it still exists (and from what you said I take it that's the case), I agree that we should do something about it.
That said, I guess Alternative 2 seems to be the safer option - though I have to admit I haven't seen such an implementation anywhere yet.
Description
Add
-Culture 'en-US'
to allSort-Object
calls, so that sorting does not depend on the environment and culture of the one running the readme gen scripts.From #3665
Seems this pipeline recently failed due to sorting issues.