Tag Archive | "PHP"

[PHP] Sort Multi-dimensional Array Based On Two Values

[PHP] Sort Multi-dimensional Array Based On Two Values

Normally when working with data that needs to be sorted, one uses the most efficient way: letting the database do it for you.  I was recently in a situation where that wouldn’t work, yet I still needed to do some complex sorting. Specifically, I needed to sort a 2d array by one key’s value, and [...] [...more]

Programming Comments (2)

-->