You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the file ordering is being treated as lexicographical (string-based) sorting rather than numeric sorting. This means that "10" comes before "2" because "1" is smaller than "2" in string comparison.
Use Zero Padding (Recommended)
To force correct numeric sorting, pad single-digit numbers with leading zeros:
Environment
Version
v3
Reproduction
https://content.nuxt.com/docs/collections/types#ordering-files
Description
Hello,
I think there is a bug when ordering large navigation when using numeric prefix.
For example, my files are:
should return exactly this ordering.
However, I get:
It seems like it's not parsing as Integer the file prefix.
The text was updated successfully, but these errors were encountered: