PHP Classes

Array Sorter: Sort multidimensional arrays

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 68%Total: 806 All time: 4,246 This week: 289Up
Version License PHP version Categories
array-sorter 1.0.0BSD License5PHP 5, Utilities and Tools, Data types
Description Author

This class can be used to sort multidimensional arrays.

It takes multidimensional array and sorts or an array of objects and sorts it by the value of a given array entry or object variable.

The sorting entry name may include one more entry names, one per each dimension.

The sorting order may be configured also to be ascending or descending.

Picture of Przemek Berezowski
Name: Przemek Berezowski <contact>
Classes: 3 packages by
Country: Poland Poland
Age: 44
All time rank: 123432 in Poland Poland
Week rank: 500 Up11 in Poland Poland Up

  Files folder image Files  
File Role Description
Plain text file sorter.php Class ArraySorter class
Accessible without login Plain text file array_example.php Example Usage example with multidimensional array
Accessible without login Plain text file array_of_objects_example.php Example Usage example with array of objects
Accessible without login Plain text file doc.txt Doc. Documentation how to use ArraySorter class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,246
This week:289Up
User Ratings User Comments (2)
 All time
very nice, thanks for sharing
11 years ago (David Hyland)
11 years ago (Jacek Lukasiewicz)
For more information send a message to info at phpclasses dot org.