dosubot[bot] commented on issue #37892:
URL: https://github.com/apache/superset/issues/37892#issuecomment-3884689654

   <!-- Greeting -->
   Hi @lucapazz! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.
   
   <!-- Answer -->
   This is a known limitation (or bug) in the Time-series Table visualization 
in Superset 6.0.0: the table always sorts by the first column, regardless of 
which column header you click. This happens because the frontend code sets the 
default sort to the first column and doesn't update the sort state when you 
click other headers. There is no dynamic sorting support for other columns in 
this visualization as of 6.0.0, and this isn't intentional—it's just not 
implemented in the current frontend logic 
([source](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/visualizations/TimeTable/TimeTable.jsx#L110-L339)).
   
   If you need advanced or interactive sorting, consider using the newer AG 
Grid Table visualization (`ag-grid-table`), which supports dynamic sorting and 
other features. As a workaround for the legacy Time-series Table, you can 
pre-sort your data before visualization, but there is no built-in fix for this 
sorting issue in 6.0.0.
   
   If you want to address this at the code level, the fix would involve 
updating the TimeTable component to manage and update the sort state based on 
user clicks, rather than always defaulting to the first column.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/dedc1b96-10ff-4c65-84f1-3108363179a3?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/dedc1b96-10ff-4c65-84f1-3108363179a3?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/dedc1b96-10ff-4c65-84f1-3108363179a3?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/dedc1b96-10ff-4c65-84f1-3108363179a3?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/dedc1b96-10ff-4c65-84f1-3108363179a3?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/dedc1b96-10ff-4c65-84f1-3108363179a3?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/dedc1b96-10ff-4c65-84f1-3108363179a3?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=This%20is%20a%20known%20limitation%20%28or%20bug%29%20in%20the%20Time-series%20Table%20visualization%20in%20Superset%206.0.0%3A%20the%20table%20always%20sorts%20by%20the%20first%20column%2C%20regardless%20of%20which%20column%20header%20you%20click.%20This%20happens%20because%20the%20frontend%20code%20sets%20the%20default%20sort%20to%20the%20first%20column%20and%20doesn%27t%20update%20the%20sort%20state%20when%20you%20click%20other%20headers.%20There%20is%20no%20dynamic%20sorting%20support%20for%20other%20columns%20in%20this%20visualization%20as%20of%206.0.0%2C%20and%20this%20isn%27t%20intentional%E2%80%94it%27s%20just%20not%20implemented%20in%20the%20current%20frontend%20logic%20%28%5Bsource%5D%28https%3A//github.com/apache/superset/blob/829e4d92d9
 
1ceae4b43b1ed3b063ffe45377799c/superset-frontend/src/visualizations/TimeTable/TimeTable.jsx%23L110-L339%29%29.%0A%0AIf%20you%20need%20advanced%20or%20interactive%20sorting%2C%20consider%20using%20the%20newer%20AG%20Grid%20Table%20visualization%20%28%60ag-grid-table%60%29%2C%20which%20supports%20dynamic%20sorting%20and%20other%20features.%20As%20a%20workaround%20for%20the%20legacy%20Time-series%20Table%2C%20you%20can%20pre-sort%20your%20data%20before%20visualization%2C%20but%20there%20is%20no%20built-in%20fix%20for%20this%20sorting%20issue%20in%206.0.0.%0A%0AIf%20you%20want%20to%20address%20this%20at%20the%20code%20level%2C%20the%20fix%20would%20involve%20updating%20the%20TimeTable%20component%20to%20manage%20and%20update%20the%20sort%20state%20based%20on%20user%20clicks%2C%20rather%20than%20always%20defaulting%20to%20the%20first%20column.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Sha
 re on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37892)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to