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

🐛组内排序使用sortFunc会出现错误 #2515

Closed
1 of 5 tasks
tufaofu opened this issue Jan 17, 2024 · 5 comments
Closed
1 of 5 tasks

🐛组内排序使用sortFunc会出现错误 #2515

tufaofu opened this issue Jan 17, 2024 · 5 comments
Labels
⚡ enhancement 功能增强 💤 inactive 不活跃的 Issue 或 PR, 30天没有回复

Comments

@tufaofu
Copy link

tufaofu commented Jan 17, 2024

🏷 Version

Package Version
@antv/s2 1.51.0
@antv/s2-react
@antv/s2-vue

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

组内排序使用sortFunc,如果两个分组内部的数据相同,会按照一样的顺序排序,不会按照对应数值的大小进行排序
image

🔗 Reproduce Link

https://codesandbox.io/p/sandbox/interesting-ride-r3sw4q?file=%2Fsrc%2Findex.js

😊 Expected Behavior

排序顺序不对,希望各个分组能按照对应值的大小进行排序

💻 System information

Environment Info
System mac
Browser 120.0.6099.199
@wjgogogo wjgogogo added the ⚡ enhancement 功能增强 label Jan 18, 2024
Copy link
Contributor

你好 @tufaofu,感谢你的建议, 我们会及时评估和排期, 谢谢!
当然, 如果能贡献 PR 帮助我们改进, 不胜感激!

Hello, @tufaofu, thanks for your advice. We will evaluate and schedule in time. Thank you!
you could implement it by yourself through the customization capabilities provided by S2. Thanks so much for your understanding.

@wjgogogo wjgogogo added the 🐛 bug 这个是一个 bug label Jan 18, 2024
Copy link
Contributor

你好 @tufaofu,很抱歉给你带来了不好的体验, 我们会尽快排查问题并修复, 请关注后续发布日志.

Hello, @tufaofu, We are so sorry for the bad experience. We will troubleshoot and fix the problem as soon as possible. Please pay attention to the follow-up change logs.

@wjgogogo
Copy link
Contributor

wjgogogo commented Jan 18, 2024

这个是排序场景的不足,内部会最终针对返回值进行维度拼接,但是因为是同样的值,做拼接时就有有问题,你可以自行拼接完成的维度信息:https://codesandbox.io/p/sandbox/sharp-kalam-szlrc4?file=%2Fsrc%2Findex.js%3A76%2C1

@wjgogogo wjgogogo reopened this Jan 18, 2024
@tufaofu
Copy link
Author

tufaofu commented Feb 1, 2024

这样是可以的,非常感谢

@github-actions github-actions bot added the 💤 inactive 不活跃的 Issue 或 PR, 30天没有回复 label Mar 16, 2024
@lijinke666 lijinke666 removed the 🐛 bug 这个是一个 bug label Mar 27, 2024
@lijinke666
Copy link
Member

已有解决方案 #2515 (comment), 该 issue 关闭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡ enhancement 功能增强 💤 inactive 不活跃的 Issue 或 PR, 30天没有回复
Projects
None yet
Development

No branches or pull requests

3 participants