PHP Classes

List: Manage double-linked lists of sorted elements

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 659 All time: 4,883 This week: 560Up
Version License Categories
sl-sortedlist 1.0Freely DistributableData types


This package can be used to manage double-linked listed of elements that are automatically sorted.

There is a class for managing the lists of elements of any type or class, and another for managing the list nodes of elements.

The list class provides means to add new list nodes in a position determined by the sorting criteria.

The sorting criteria can be customized passing the name of a callback function that performs the comparision between the elements of the list.

The code and the comments are in Spanish.

In Spanish:

Lista simplemente enlazada que mantiene el orden de los elementos que se le insertan.

Puede almacenar cualquier tipo de dato, incluso Objetos y arrays.

Para determinar el orden qeu se debe mantener utiliza una función definida por el usuario que se le indica a la clase al instanciarla.

Picture of Matías montes
Name: Matías montes <contact>
Classes: 3 packages by
Country: Argentina Argentina
Age: 39
All time rank: 114914 in Argentina Argentina
Week rank: 250 Up3 in Argentina Argentina Up

  Files folder image Files  
File Role Description
Plain text file class.Lista.php Class Main class file
Plain text file class.Nodo.php Class Node class. Used by main class
Accessible without login Plain text file Ejemplo1.php Example Simple example using Integers
Accessible without login Plain text file Ejemplo2.php Example Example using objects and chained lists

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,883
This week:560Up