1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! # Atrocious sort
//!
//! Atrocious sort is a collection of some of the most useless sorting algorithms.
//! The different algorithms depend on different traits to be implemented for the types
//! that are to be sorted. The traits are specified in the documentation of each algorithm.
//!
//! Implemented algorithms can only sort in ascending order.
//!
//! ## Algorithms
//!
//! Currently implemented algorithms
//! - Stalinsort
//! - Intelligent Design Sort
//! - Sleep Sort
//! - Bogo Sort
//! - Bogobogo Sort
//! - Stooge Sort
//!
//! ## Examples
//!
//! ```rust
//! extern crate atrocious_sort;
//! use atrocious_sort::stalinsort;
//!
//! fn main() {
//! let mut data = vec![1, 2, 3, 2, 1];
//! stalinsort(&mut data);
//! assert_eq!(data, [1, 2, 3]);
//! }
//! ```
pub use stalinsort;
pub use intelligent_design_sort;
pub use sleep_sort;
pub use slowsort;
pub use bogo_sort;
pub use bogobogo_sort;
pub use stoogesort;