Array
(
[0] =Array
(
[id] =3
[title] =Tst topic 111 main
[created] =2012-11-06 13:04:57
[sticked] =
[forums_id] =1
[status] =open
)
[1] =Array
(
[id] =6
[title] =Topic 222 Main
[created] =2012-11-04 15:31:15
[sticked] =
[forums_id] =1
[status] =open
)
[2] =Array
(
[id] =7
[title] =dfgdfgdfg
[created] =2012-11-19 13:27:10
[sticked] =
[forums_id] =1
[status] =open
)
[3] =Array
(
[id] =9
[title] =sdf ertert ertwer
[created] =2012-11-20 11:30:55
[sticked] =2012-11-20 11:30:00
[forums_id] =1
[status] =&close
)
[4] =Array
(
[id] =10
[title] =345245
[created] =2012-11-20 11:34:17
[sticked] =2012-11-20 11:34:00
[forums_id] =&1
[status] =open
)
)
これは私の結果の多次元配列です。一部のトピックにはsticked
、日時スタンプ付きのフィールドがあります。sticked
この配列を最初にフィールド (DESC 順)で並べ替えたい場合、すべての固定トピックが配列の先頭になります。次に、null スティック フィールドを持つすべての配列を DESC 順で並べ替えたいと思いcreated
ます。
出来ますか ?
私が期待している順序は です[4] - [3] - [2] - [0] - [1]
。