ruby / rdoc

RDoc produces HTML and online documentation for Ruby projects.
https://ruby.github.io/rdoc/
Other
844 stars 439 forks source link

Method names sorted by ASCII code causes `~` and `|` to be placed at the bottom #1204

Open peterzhu2118 opened 1 week ago

peterzhu2118 commented 1 week ago

Since the ASCII codes for ~ and | are greater than the alpha character codes, they are placed at the bottom of the method list compared to other operators such as !, +, or %. This is a bit odd as these two characters end up not grouped with the other operators.

For example, for Integer documentation, we can see that most of the operator methods are at the top:

Screenshot 2024-11-11 at 11 18 40 AM

But there are two operators at the bottom:

Screenshot 2024-11-11 at 11 19 08 AM