Sort MySQL Table Data in Ascending or Descending Order in CodeIgniter 4
In this tutorial I am going to show you how to sort MySQL table data in ascending or descending order to display them on HTML table on user…
In this tutorial I am going to show you how to sort MySQL table data in ascending or descending order to display them on HTML table on user…
Introduction Quick sort or quicksort (sometimes called partition-exchange sort) is an efficient and very fast sorting algorithm for internal sorting, serving as a systematic method for placing the…
Introduction Bubble sort is one of the most popular sorting methods. It can be treated as a selection sort because it is based on successively selecting the smallest…
Selection sorting refers to a class of algorithms for sorting a list of items using comparisons. These algorithms select successively smaller or larger items from the list and…
The simplest possible technique based on the principle of repeated selection makes use of “n” passes over an array elements. In the i-th pass, the i-th smallest element…
I will show here an example on shell sort (invented by Donald Shell) using C programming language. This method makes repeated use of straight insertion or shuttle sort.…
Insertion sort is a simple sorting algorithm that builds the final sorted array (or list) one item at a time. More details can be found here at https://en.wikipedia.org/wiki/Insertion_sort…
In Shuttle Sort technique for n elements in an array a, it requires n-1 passes. When i-th pass(1<=i<=n) begins, the first i elements, i.e., elements a[0] to a[i-1]…
This tutorial shows an example how to sort an array using asort() function available in PHP. The asort() function sorts an array by maintaining the index association. This…
This tutorial shows an example how to sort an array using natsort() function available in PHP. The natsort() function sorts an array using natural order sorting algorithm. This…