It is shown in this example how to sort random data with the help of php-scripts. Script creates a table with the generated random meanings of the time/date for the past 30 days and the sum on the page It imitates the expenses for the indicated period at the exact time. Any data of the two fields can be sorted by increase and decrease values on the page by pressing certain buttons. This script can be also used for sorting data, entered by the user. But it has to be slightly changed. It can be done by means of the form. The source code of this example is shown below.
<div align="center"><