Repeat row question

I have a repeat row like this

<div class="row redrow" dmx-repeat:repeat1="api5.data.data.onwardflights.sort(`fare.grossamount`).groupBy(`searchKey`)">

I would like to bind data inside the repeat as i normally would but I only want to display a single result instead of multiple. I have to use the repeat to get all the data so i can group and sort it first.
I tried returning a single result like this but it gives multiple results

<div class="col-12 col-sm-6 text-center airline-output" dmx-hide="$index > 0"><h4>Airline</h4>{{$value[0].airline}}</div>

So to get around it i do something i am ashamed of which is that dmx-hide="$index > 0"

LOL, any ideas to do it better please.

Community Page
Last updated: