Flexmonster MCP Server is here! Connect your ✨AI assistant to our documentation. Get started
+

Can sort value A then show value B on table?

Answered
pvaritta pvaritta asked on November 28, 2018

Hi,
I attach a sample jsonData pattern below.
If I would like to sort data by sequence but would like to show 'name' on the table. Which component that I have to use and how?
 
Thank you. 
 

[
{
sequence: 1,
name: '1 month',
Сountry: 'Canada',
day: 30,
},
{
sequence: 2,
name: '2 months',
Сountry: 'China',
day: 60,
},
{
sequence: 3,
name: '1 year',
Сountry: 'Columbia',
day: 365,
},
{
sequence: 4,
name: '3 year',
Сountry: 'Sweden',
day: 1095,
},

]

1 answer

Public
Tanya Gryshko Tanya Gryshko ⋅ Flexmonster ⋅ November 28, 2018

Hello, Varitta,
Thank you for posting to our forum.
To achieve that we suggest applying custom sorting to the name column. Such sorting can be based on sequence. For more information and examples on how to define custom sorting for the name column, please refer to our guide: https://www.flexmonster.com/doc/sorting/.
Hope it helps.
Regards,
Tanya

Please sign in or register to submit your answer