Login   Register  
PHP Classes
elePHPant
Icontem

Array Sorter: Sort multidimensional arrays

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-03-18 (3 years ago) RSS 2.0 feedStarStarStarStar 68%Total: 688 This week: 1All time: 4,345 This week: 1,432Up
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: 36
All time rank: 141738 in Poland Poland
Week rank: 322 Up9 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  
 0%Total:688All time:4,345
 This week:1This week:1,432Up
User Ratings User Comments (2)  
 All time
Utility:100%StarStarStarStarStarStar
Consistency:93%StarStarStarStarStar
Documentation:-
Examples:93%StarStarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:282
 
very nice, thanks for sharing
3 years ago (David Hyland)
67%StarStarStarStar
wow
3 years ago (Jacek Lukasiewicz)
70%StarStarStarStar