| Recommend this page to a friend! |
| Classes of Fabian Schmengler | > | Comparator Tools | > | Download .tar.gz .zip | > | > | > | |||||
|
|||||||||||||||||||||||||
| Author | ||
![]() |
|
Innovation award![]() Nominee: 4x | |||||||||||||||||||
| Groups | Freshmeat project | |||||
| Applications | Related links | |||||
| Groups | ||
| PHP 5 | Classes using PHP 5 specific features | View top rated classes | |
| Data types | Modeling and manipulating data types | View top rated classes | |
| Language | Constructs to assist in the language control | View top rated classes |
| Innovation Award | ||
![]() October 2010 Number 2 Prize: One subscription to the PDF edition of the PHP Architect magazine |
Most sorting algorithms determine the order by which a set of elements is stored by comparing pairs of elements. This package implements a comparable interface that can be implemented by any objects of any classes that you may need to be sorted. Manuel Lemos |
| Freshmeat project | ||
| Project record: | comparator-tools |
|---|---|
| Popularity score: | 20.83 |
| Vitality score: | 1.52 |
| User ratings | ||
| Not yet rated by the users |
| Applications that use this class | ||
| Related links | ||
| Link | Description |
|---|---|
| github.com | Latest version at github |
| File | Role | Description | ||
|---|---|---|---|---|
| Lic. | BSD License | |||
| Doc. | Documentation | |||
| Aux. | library loader, include this file to use the package | |||
| Class | abstract tool class | |||
| Class | tool class for other array modifications (diff, intersect, unique) | |||
| Class | tool class for sorting | |||
| Class | comparable interface | |||
| Class | comparator interface | |||
| Class | comparator exception | |||
| Aux. | procedural interface (osort, orsort etc.) | |||
| Files | / | |||
| File | Role | Description |
|---|---|---|
| |
Class | ObjectSorter functionality for iterators |
| Files | / | |||
| File | Role | Description |
|---|---|---|
| |
Class | comparator for Comparable interface |
| |
Class | comparator for object identity |
| |
Class | decorator class to revert comparator outcome |
| |
Class | abstract comparator for SplFileInfo objects |
| |
Class | compare SplFileInfo objects by access time |
| |
Class | compare SplFileInfo objects by creation time |
| |
Class | compare SplFileInfo objects by modification time |
| |
Class | compare SplFileInfo objects by file name |
| |
Class | compare SplFileInfo objects by file size |
| |
Class | compare SplFileInfo objects by file type |
| Files | / | |||
| File | Role | Description |
|---|---|---|
| |
Example | an implementation of the Comparator interface, used by the examples |
| |
Example | an implementation of the Comparable interface, used by the examples |
| |
Example | generation of a randomized object array |
| |
Example | some sorting |
| |
Example | same example but with the procedural interface |
| |
Example | more examples |
| Download all files: comparator-tools.tar.gz comparator-tools.zip |