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

fix(View): schema table name sorted by a-z #462

Merged
merged 1 commit into from
Dec 27, 2021

Conversation

scottsut
Copy link
Contributor

No description provided.

@scottsut scottsut linked an issue Dec 27, 2021 that may be closed by this pull request
Comment on lines +101 to +107
tables: data.sort((a, b) =>
a.toLowerCase() < b.toLowerCase()
? -1
: a.toLowerCase() > b.toLowerCase()
? 1
: 0,
),
Copy link
Member

@xieliuduo xieliuduo Dec 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tables: data.map(t=>t.toLowerCase()).sort(),

What do you think about it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有问题,这样一来表名称都会以小写字母显示。

我希望按照字母顺序排序,但不受大小写影响

image

@scottsut scottsut requested a review from xieliuduo December 27, 2021 04:42
@xieliuduo xieliuduo merged commit c15df1d into running-elephant:dev Dec 27, 2021
@scottsut scottsut deleted the fix_schema_table_sort branch December 30, 2021 09:03
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