根據後台返回的日期排序資料

2021-07-22 17:42:36 字數 856 閱讀 6911

1、資料陣列套字典

( ,

, ,

)2、message_header是本次我們要拿來排序的日期

3、建立乙個model放資料的字段

4、拿日期進行比較,相同的拼接放在同乙個陣列不同的放另乙個陣列,

效果圖

還可以這樣 /*if (dic) ];

//日期

nsmutablearray *dayarray = [nsmutablearray array];

//所有的天數

nsmutablearray *alldatearray = [nsmutablearray array];

//每一條

nsmutablearray *datemutablearray = [nsmutablearray array];

for (nsstring *datekey in [mutabledict allkeys])

[alldatearray addobject:datemutablearray];

[dayarray addobject:datekey];

}

根據排序定義表排序資料

測試資料 create table tb1 id int,col1 varchar 10 col2 int insert tb1 select 1,aa 111 union all select 2,aa 111 union all select 3,aa 111 union all select ...

根據排序定義表排序資料

根據排序定義表排序資料 測試資料 create table tb1 id int,col1 varchar 10 col2 int insert tb1 select 1,aa 111 union all select 2,aa 111 union all select 3,aa 111 union...

根據排序定義表排序資料

根據排序定義表排序資料 測試資料 create table tb1 id int,col1 varchar 10 col2 int insert tb1 select 1,aa 111 union all select 2,aa 111 union all select 3,aa 111 union...