OrderBy with enumerable property in AngularJS -


I have an object array where every object can have an array of properties, such as it

 Name: 'Big House', property: [{name: 'field', value: '400'}, {name: 'year', value: '1 9 50'}}}, {name: 'small (Name: '400'}, {name: 'year', value: '1950'}}}, {name: 'green house', property: [{name: 'Field', '' name ':' '' 'value' ',' '', '{name:' year ', value:' 1 999}}}},];   

Now I want to order this list by one of the properties, the area says, using a filter in ng-repeat. Is this possible?

I am playing with Plunker () but it does not understand how to do it.

Thank you in advance

This will also work when this area is the first property :

  & lt; Tr ng-repeat = "house in house | orderbank: 'attribute [0]. Value' '& gt;   

Also ensure that the area is defined as integer Now they are wires, so 250 will be sorted before 40.

then remove quotation marks from numbers:

  {name: 'field', value: 400 }, {Name: 'year', value: '1 9 50'}    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -