Docz: The menu order is not always alphabetical

Created on 20 Jul 2018  Â·  3Comments  Â·  Source: doczjs/docz

Bug Report

Describe the bug

When there are a lot of items in a menu, it seems that the menu order is being messed up. For example, I created this repo:

https://github.com/tsnolan23/docz-menu-order-issue

There are 26 menu items under the "Components" menu. I didn't modify the order in any of the files, yes, the 2 of the files are out of position.

To Reproduce

  1. Clone that repo
  2. Install dependencies
  3. npm run docs
  4. Look at the menu order

Expected behavior

If no order has been modified, everything should be sorted alphabetically.

Enviroment

  • OS: Windows 10
  • Node/npm version: v8.9.3 / v5.5.1

Additional context/Screenshots

menu_order

bug

All 3 comments

If you do not mind, we can manually set the menu order, such as

---
name: Button
menu: Components
order: 100
---

the bigger the order number, the more the front

@moedong Not really sure that's a solution to the problem...I don't want to have to maintain the order of any components directly, I just want them alphabetical.

I understand that order is an option, but it doesn't solve the underlying problem in this case, it just masks it.

✅ Fixed on v0.7.1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danburzo picture danburzo  Â·  3Comments

YardWill picture YardWill  Â·  3Comments

ssylvia picture ssylvia  Â·  3Comments

mquandalle picture mquandalle  Â·  3Comments

w0wka91 picture w0wka91  Â·  3Comments