我需要按以下方式對字典數組排序。該陣列包含以下格式的字典:排序字典數組
[{
fecha = "09:54:51";
"nombre_vendedor" = Rafaela;
numero = 501;
precio = 52;
"punto_venta" = Base;
tipo = Gold;
}
{
fecha = "09:54:51";
"nombre_vendedor" = Miguel;
numero = 400;
precio = 40;
"punto_venta" = Base;
tipo = Gold;
}]
所有我必須按「數字」鍵進行排序。
任何人都有任何想法如何做到這一點。我一直在嘗試sortedArrayUsingComparator方法,但我沒有得到任何結果。
謝謝。
你能提供你試過嗎? – 2015-02-11 20:15:33