Jump to content

Sorting a multidimensional array


azuka

Recommended Posts

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 [b]Sort[/b] is common to both arrays, I want to sort by Sort in descending order. How possible is that?
Link to comment
https://forums.phpfreaks.com/topic/5819-sorting-a-multidimensional-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.