Ce script permet le tri d'une table de données en ordre croissant ou décroissant de chacune des en-têtes de colonne, au choix. Le tri fonctionne pour les dates, les nombres, les montants et les textes. Les dates peuvent être en format international, américan ou européen mais les montants doivent être en format impérial. On peut ajouter autant de colonnes et de lignes que l'on veut. Le script permet également d'afficher les lignes du tableau avec des couleurs de fonds et autres caractéristiques différentes pour les lignes paires et impaires.

This script allow the sorting of a data table in increasing or decreasing order for each table column header, at choice. The sorting works for dates, numbers, amounts and texts. The date can be in international, american or european format, however the amounts must be in imperial format. You can add as many columns and lines as you wish. The script also allows to show the lines of the table with different background colors and other characteristics for even and odd lines.

Exemple :

Example:

Télécharger ce fichier (bouton droit, Enregistrer la cible sous...) et copier les fichiers qu'il contient dans un sous-répertoire /images :

Download this file (right click, Save the link as...) and copy the files it contains in a sub-directory /images:

Copier ceci dans la section <HEAD> entre des étiquettes <STYLE>et </STYLE> ou dans un fichier .css relié.

Copy this in the <HEAD> section between <STYLE> and </STYLE> tags or in a .css linked file.



Copier ceci dans la section <HEAD> entre des étiquettes <SCRIPT>et </SCRIPT> ou dans un fichier .js relié.

Copy this in the <HEAD> section between <SCRIPT> and </SCRIPT> tags or in a .js linked file.



Copier ceci à l'intérieur l'étiquette <BODY>.

Copy this inside the <BODY> tag.



Copier ceci dans la section <BODY> à l'endroit désiré dans la page.

Copy this in the <BODY> section at the desired location in the page.