PHP Classes

Array Sorter: Sort multidimensional arrays

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 62%Total: 815 All time: 4,235 This week: 455Up
Version License PHP version Categories
array-sorter 1.0.0BSD License5PHP 5, 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: 46
All time rank: 123232 in Poland Poland
Week rank: 164 Up4 in Poland Poland Up

  Files folder image Files (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:815
This week:0
All time:4,235
This week:455Up
User Ratings User Comments (2)
 All time
Utility:90%StarStarStarStarStar
Consistency:85%StarStarStarStarStar
Documentation:-
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:62%StarStarStarStar
Rank:971
 
very nice, thanks for sharing
13 years ago (David Hyland)
67%StarStarStarStar
wow
13 years ago (Jacek Lukasiewicz)
70%StarStarStarStar