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
I tried that already but no matter where i put the [0] i could not get it to do what i wanted.
Can you show me where on that please.
EDIT: The above code is what i have now, that gives me all the data from the first groupBy, tried doing {{$value[0][0].airline}} to get the first record from the first Group.
Thanks so much Patrick, that taught me something very valuable
I so no have to be inside a repeat to sort an array, I thought i HAD to, like no other option.
This opens up a whole new world of possibilities to me, thank you.
This is what I landed up having to do to get it working, seems it is a hefty multidimensional array returned.
Vs Solution 2 (By adding the core into a variable I should only be sorting and grouping once and then just extracting what i need, but the var has much more unused data than in solution 1)
Thanks so much for confirming that now i am busy trying to add failover to my geo checking solution, this actually works by the way, never thought it would but it does.