VisActor / VisActor/VTable

[Bug] 透视表中多标题进行升序排序后,表现不如预期结果

Open
#4,089 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

Version

1.17.2

Link to Minimal Reproduction

no

Steps to Reproduce

1.代码配置了 每个字段都是升序排列

option.dataConfig = {
sortRules: sortRules(rows, columns)
}

Current Behavior

1.现在就是标题排序会错乱了如下图:

Image
2.比如FUL-> MTY,HKHK2->HKHK3,这样才对的
3.就是期望联合排序,第一个标题按住升序,第二个也是升序,依此类推

Expected Behavior

1.就是联合排序,第一个标题按住升序,第二个也是升序,依此类推

Environment
- OS:win10
- Browser:chrom内核
- Framework:
Any additional comments?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the pivot-table sorting path from the mentioned option.dataConfig.sortRules: sortRules(rows, columns) configuration. Reproduce the multi-level ascending sort with the provided title ordering, then verify that the first title is sorted before the second and subsequent titles, matching the expected combined ordering.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.