Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort function names alphabetically in the sidebar #917

Merged
merged 1 commit into from
Nov 4, 2018
Merged

Sort function names alphabetically in the sidebar #917

merged 1 commit into from
Nov 4, 2018

Conversation

fertapric
Copy link
Member

ExDoc.FunctionNode's :id is composed of the function name, a slash, and the function arity. For example: name/0.

ExDoc.ModuleNode is sorting the functions alphabetically based on that :id, but it doesn't take into account that "/" >= "!" == true. That means that fetch!/2 is displayed before fetch/2.

This is a regression from previous docs (check order of fetch and fetch!): Elixir v1.6 Map, Elixir v1.7.3 Map

ExDoc.FunctionNode's :id is composed of the function name, a
slash, and the function arity. For example: name/0.

ExDoc.ModuleNode is sorting the functions alphabetically based
on that :id, but it doesn't take into account that
"/" >= "!" == true. That means that "fetch!/2" is displayed before
"fetch/2".
@josevalim josevalim merged commit 13c7b28 into elixir-lang:master Nov 4, 2018
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants