Most code structure outliners can sort the outline alphabetically, e.g. all the Jetbrains IDE. Why would you want to sacrifice logical grouping over alphabetical one?
Personally I tend to seperate things logically by using different files within packages - so I might have:
foo/
foo/maths.go
foo/strings.go
foo/logical.go
And then sort the implementation of each specific post. This is mentioned in the blog post linked within this thread - author here, though I wouldn't have considered submitting here.But yes, IDEs do tend to give you an (alphabetical) tree, and personally I'd find it odd if the tree and the contents didn't match.
function coolThingWrap
function coolThingUnwrap
It doesn't always make sense but alphabetical ordering makes sense