3
I need to order a list, which is in two ng-repeat
, but I can only order within the group of the second ng-repeat
and made a jsFiddle
that shows my code:
https://jsfiddle.net/xxg4ajkk/2/
The order I want to work is as in the example below.
Ordered by name:
Alberto Alexandre - 2º Ciclo - prata
João Alfredo - 1º Ciclo - bronze
Maria Tomazio - 1º Ciclo - prata
Roxele Almondega - 2º Ciclo - ouro
Ordered per cycle:
João Alfredo - 1º Ciclo - bronze
Maria Tomazio - 1º Ciclo - prata
Alberto Alexandre - 2º Ciclo - prata
Roxele Almondega - 2º Ciclo - ouro
Ordered by plan:
Roxele Almondega - 2º Ciclo - ouro
Maria Tomazio - 1º Ciclo - prata
Alberto Alexandre - 2º Ciclo - prata
João Alfredo - 1º Ciclo - bronze
Did any of the answers work out?
– novic
I ended up asking to change the JSON without nesting per cycle. The two answers are excellent, and will help me a lot, thank you.
– Carlos Fagiani Jr