Sorting algorithms/Quicksort

From Rosetta Code
Revision as of 17:10, 3 October 2007 by rosettacode>IanOsgood (Add Quicksort task)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Task
Sorting algorithms/Quicksort
You are encouraged to solve this task according to the task description, using any language you may know.

In this task, the goal is to sort an array of elements using the Quicksort algorithm. The elements must have a total order and the index of the array can be of any discrete type. For languages where this is not possible, sort an array of integers.