This is the json that is generated using PHP
[{"Sale":{"id":"1","customer_id":"1","amount":"15","created":"2014-05-17"}}]
Doing orderBy:id
is obviously not working. I read in other posts that an orderBy function needs to be created for this kind of data structure. I am not able to create the function. Can anyone please tell me what is the correct way to approach this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…