I have an array whose member consist of arrays. I have a problem sorting them. The problem is that for each index, the array structure may vary but it either has these keys [BookId,BookName,BookSummary,Sort] or [ChapId,ChapName,ChapText,BookId, Sort]. Since Sort is common to both arrays, I want to sort by Sort in descending order. How possible is that?
Sorting a multidimensional array
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users