Given a list grouped by property "type", ordered by property type and id.
My store contains
The result is the list
I add a record to that store:
I would expect:
but I get
Let's now reload the same store with the following data:
I now add to the store:
I would expect:
but I get
Is this behaviour indended, or what did I overlook?
My store contains
Code:
{id:1,name:'Peter',type:'Person'}
{id:2,name:'Alex',type:'Person'},
{id:3,name:'Count Dracula',type:'Unperson'}The result is the list
Code:
Person
o Peter
o Alex
Unperson
o Count DraculaI add a record to that store:
Code:
{id:2,name:'Alex',type:'Unperson'}I would expect:
Code:
Person
o Peter
Unperson
o Alex
o Count Draculabut I get
Code:
Person
o Peter
o Alex
Unperson
o Count DraculaLet's now reload the same store with the following data:
Code:
{id:1,name:'Peter',type:'Person'}
{id:2,name:'Alex',type:'Unperson'},
{id:3,name:'Count Dracula',type:'Unperson'}I now add to the store:
Code:
{id:2,name:'Alex',type:'Person'}I would expect:
Code:
Person
o Peter
o Alex
Unperson
o Count Draculabut I get
Code:
Person
o Peter
Person
o Alex
o Count DraculaIs this behaviour indended, or what did I overlook?
Aucun commentaire:
Enregistrer un commentaire