We have an Event view with 2 segments. Past events & Upcoming events. We want to filter Upcoming events on start_date descending & Past events on start_date ascending.
While sorting can be independent from segment to segment on different fields, it doesn’t on the same field.
Hence, we find ourselves having to pick one or the other that will apply to both view, making one of them hard to understand.
I have 2 segments, I sort one with start_date asc & one with start_date desc, and both segments are independently sorted.
Environment: Staging, Preprod, Production
I’m just gonna rephrase your problem just to make sure I have correctly understood your need.
You have a table
Event containing the column
You would like to create 2 segments for this table, where the
start_date is present and you would like to sort them as follow:
Past event: sort on start_date ascending
Upcoming event: sort on start_date descending
Have I correctly understood your problem?
Hey @mian , thanks for your fast answer
Actually, we already have the segments, and we already sort them like this in the code. It doesn’t work…
We tried everything we could with the Forest UI as well, doesn’t work neither.
to make it short: having segments of the same view using different sorting on the same field doesn’t work.
@MaximeRobion Indeed, I tried to reproduce your problem and we have a bug!
We are working on a fix.
I will let you know as soon as it is deployed
Cool, thanks @mian , have a great day!