Sorting

Introduction

Sorting is the process of putting items into some sort of order. The sorting algorithm used is often dependent on the existing orderedness of the elements.

JavaScript Sort

The javaScript sort uses the javaScript function sort().

Dialog

The following dialog demonstrates various sorting techniques.

Input
Output

Code

The following is the javaScript code.

src/js/sorting.js