Ask, and it shall be given you; seek, and ye shall find; knock, and it shall be opened unto you.
Matthew 7:7
You may already be familiar with PHP, the most popular server-side programming language.
Briefly about the language. Founded in 1994 by Rasmus Lerdorf to count visits to his personal website. It was originally written as a simple set of Common Gateway Interface (CGI) binaries written in C. In 1995 Lerdorf rewrote the library by adding new features. The first version supports creating dynamic web pages, working with a database, embedding HTML syntax. The syntax is close to Pearl.
Why is it important to use sorting?
At first glance, it’s much easier to find someone’s name if you look through an alphabetical list.
Using ordered data also speeds up searching for and finding elements in Arrays, Lists, Sets, Collections etc.
Reduced time leads to the use of less computing power in computing machines, which in turn consume less electricity. Try to create and use efficient algorithms (not just sorting) to save natural resources – they are not endless.
Comments