This is a module to simplify the sorting of arrays. Sorting a multi-dimensional array by multiple key fields isn't something that you need to write that frequently. As a result, you can waste quite a bit of time figuring out how to make it work (I know I did!). Having spent the better part of a day working through this (experimenting with different options), I didn't want to ever have to do that again. I wrote this module to make it easy to do it the next time. I share it here so you can avoid wasting this time as well. Using it looks like this: array_rows_to_columns ($test,"last_name","first_name","address","phone"); Download it here | |||||||
| |||||||
Web design
Database-driven systems Easy-to-maintain web sites
| Array Sort |