How can I sort arrays and data in PHP?
问题 This question is intended as a reference for questions about sorting arrays in PHP. It is easy to think that your particular case is unique and worthy of a new question, but most are actually minor variations of one of the solutions on this page. If your question is closed as a duplicate of this one, please ask for your question to be reopened only if you can explain why it differs markedly from all of the below. How do I sort an array in PHP? How do I sort a complex array in PHP? How do I