jleyba / js-dossier

A JavaScript documentation generation tool.
Apache License 2.0
150 stars 15 forks source link

Sort sidebar items case insensitively? #83

Open danielcompton opened 8 years ago

danielcompton commented 8 years ago

https://google.github.io/closure-library/api/ has a sidebar with the API. The items there are sorted case insensitively, which means that goog.Uri is sorted above goog.array. Would it be possible to sort these case insensitively, or does this not make sense?

jleyba commented 8 years ago

I don't think pure case insensitive would make sense. How about namespaces first, then alphabetical within the namespace? So you'd have something like (just picking a few types for demo purposes):

goog
  array
  dom
    iter
      AncestorIterator
      ChildIterator
  Promise
  Uri