PHP Classes
elePHPant
Icontem

Advanced Array Sort: Sorts multidimensional arrays by multiple columns

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 (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-12-16 (9 years ago) RSS 2.0 feedStarStarStar 53%Total: 2,516 All time: 1,441 This week: 1,174Up
Version License Categories  
array_sort 1.0GNU General Publi...Data types
Description Author  

This class sorts two- or multidimensional arrays by one or multiple columns. The assumed array format is always [row][column]([property]).

Sorting works ascending as well as descending.

There are no limits to either the dimensions of the array or the columns it is sorted by.

All that's necessary to pass to the class is the array to be sorted and a sort string specifying how the array is to be sorted. This sort string is checked for syntactical and semantical errors. Should any error occur an appropriate error message is returned.

Picture of Matthias Rothe
Name: Matthias Rothe <contact>
Classes: 1 package by
Country: Germany Germany
Age: 33
All time rank: 114873 in Germany Germany
Week rank: 1560 Down86 in Germany Germany Down

  Files folder image Files  
File Role Description
Plain text file array_sort.class.inc Class The full, uncommented source code
Plain text file array_sort.commented_class.inc Class The full source code with German comments
Accessible without login Plain text file array_sort_example1.php Example Example of the Class in Use (readme.txt conform)
Accessible without login Plain text file array_sort_example2.php Example Example of the Class in Use (Outputs Error Msgs)
Accessible without login Plain text file license.txt Lic. License
Accessible without login Plain text file readme.txt Doc. A brief Manual to the Class

 Version Control Unique User Downloads Download Rankings  
 0%Total:2,516All time:1,441
 This week:0This week:1,174Up
User Ratings User Comments (1)  
 All time
Utility:70%StarStarStarStar
Consistency:70%StarStarStarStar
Documentation:58%StarStarStar
Examples:54%StarStarStar
Tests:-
Videos:-
Overall:53%StarStarStar
Rank:1414
 
Could not get it to work
4 years ago (Don Proshetsky)
35%StarStar