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

feat(router): add sortRoutesByOrder function #295

Merged
merged 1 commit into from
Jan 15, 2024
Merged

feat(router): add sortRoutesByOrder function #295

merged 1 commit into from
Jan 15, 2024

Conversation

Azir-11
Copy link
Member

@Azir-11 Azir-11 commented Jan 11, 2024

Pull Request 详情

This function sorts the routes by their meta.order property, which is a number. If the meta.order property is missing or
invalid, it is treated as 0. The routes with lower meta.order values are placed before the routes with higher meta.order
values. The function also sorts the children routes recursively, if any.

版本信息

v1.0-beta

解决了哪些问题

Support routing sorting

是否关闭了某个 Issue

Copy link

vercel bot commented Jan 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
soybean-admin ❌ Failed (Inspect) Jan 11, 2024 6:57pm

@honghuangdc honghuangdc merged commit ff4c8cc into soybeanjs:v1.0-beta Jan 15, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants