PHP Classes

Array Multi Sort: Sort arrays considering multiple values

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
StarStarStar 59%Total: 4,140 All time: 736 This week: 488Up
Version License Categories
arr_multisort 1.0.0BSD LicenseDatabases, Data types
Description 

Author

This class is meant to sort arrays of associative arrays like those returned as result sets database query functions.

It can sort the result arrays considering multiple result columns. It can perform ascendent or descendent sorting onb each column.

Columns of dates are sorted correctly if they comply with GNU date syntax.
(http://www.gnu.org/software/tar/manual/html_chapter/tar_7.html)

Picture of Alexandar Minkovsky
Name: Alexandar Minkovsky <contact>
Classes: 3 packages by
Country: Bulgaria Bulgaria
Age: 53
All time rank: 1661 in Bulgaria Bulgaria
Week rank: 170 Down2 in Bulgaria Bulgaria Down
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files (2)  
File Role Description
Plain text file arr_multisort.class.php Class Class file
Accessible without login Plain text file example.php Example Example usage

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:4,140
This week:0
All time:736
This week:488Up
User Ratings User Comments (1)
 All time
Utility:86%StarStarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:-
Examples:83%StarStarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:1248
 
Very clean and fast class.
14 years ago (Diego Ritzel)
70%StarStarStarStar