Found 3 bookmarks
Custom sorting
Set the hostname/computer name for macOS
Set the hostname/computer name for macOS

I've had an issue with a Macbook Pro on one particular network where, even though I've set the computer name via system preferences, in the terminal (and via hostname) it's showing as the network-generated name.

This seems to help tidy things up.

·apple.stackexchange.com·
Set the hostname/computer name for macOS