I have a file that looks like this:
```
[dus1-artifactory]
artifactory01.dus1.nskope.net given\_name=dus1artifactory01 ext\_dns\_name=artifactory01 mgmt\_dns\_name=localhost

[dus1-pbh]
pbh01.dus1.nskope.net given\_name=dus1pbh01 ext\_dns\_name=pbh01 mgmt\_dns\_name=pbh01
pbh02.dus1.nskope.net given\_name=dus1pbh02 ext\_dns\_name=pbh02 mgmt\_dns\_name=pbh02

[dus1-sbh]
sbh01.dus1.nskope.net given\_name=dus1sbh01 ext\_dns\_name=sbh01 mgmt\_dns\_name=sbh01
sbh02.dus1.nskope.net given\_name=dus1sbh02 ext\_dns\_name=sbh02 mgmt\_dns\_name=sbh02

[dus1-dpsvclb]
#dpsvclb01.dus1.nskope.net given\_name=dus1dpsvclb01 ext\_dns\_name=dpsvclb01 mgmt\_dns\_name=localhost
#dpsvclb02.dus1.nskope.net given\_name=dus1dpsvclb02 ext\_dns\_name=dpsvclb02 mgmt\_dns\_name=localhost
dpsvclb03.dus1.nskope.net given\_name=dus1dpsvclb03 ext\_dns\_name=dpsvclb03 mgmt\_dns\_name=localhost
dpsvclb04.dus1.nskope.net given\_name=dus1dpsvclb04 ext\_dns\_name=dpsvclb04 mgmt\_dns\_name=localhost

```
where each section is preceded by a section header enclosed in square brackets. Some lines are commented out with a leading `#`

Please write a script to read in such a file, alphabetize each section in-place, ignoring leading #'s for alphabetization purposes, but leaving them in place, and write the output file, overwriting the original.
user