General

functions

bubble-sort

@function bubble-sort($list, $order: $default-order) { ... }
View source

Description

Bubble sort

Parameters

parameter Name parameter Description parameter Type parameter Default value
$list

list to sort

List none
$order

order to use for sorting

List $default-order

Returns

List

Used by

Author

  • Hugo Giraudel

comb-sort

@function comb-sort($list, $order: $default-order) { ... }
View source

Description

Comb sort

Parameters

parameter Name parameter Description parameter Type parameter Default value
$list

list to sort

List none
$order

order to use for sorting

List $default-order

Returns

List

Used by

Author

  • Hugo Giraudel

insertion-sort

@function insertion-sort($list, $order: $default-order) { ... }
View source

Description

Insertion sort

Parameters

parameter Name parameter Description parameter Type parameter Default value
$list

list to sort

List none
$order

order to use for sorting

List $default-order

Returns

List

Used by

Author

  • Hugo Giraudel

quick-sort

@function quick-sort($list, $order: $default-order) { ... }
View source

Description

Quick sort

Parameters

parameter Name parameter Description parameter Type parameter Default value
$list

list to sort

List none
$order

order to use for sorting

List $default-order

Returns

List

Requires

Used by

Author

  • Sam Richards

selection-sort

@function selection-sort($list, $order: $default-order) { ... }
View source

Description

Selection sort

Parameters

parameter Name parameter Description parameter Type parameter Default value
$list

list to sort

List none
$order

order to use for sorting

List $default-order

Returns

List

Used by

Author

  • Hugo Giraudel

shell-sort

@function shell-sort($list, $order: $default-order) { ... }
View source

Description

Shell sort

Parameters

parameter Name parameter Description parameter Type parameter Default value
$list

list to sort

List none
$order

order to use for sorting

List $default-order

Returns

List

Used by

Author

  • Hugo Giraudel

sort

@function sort($list, $order: $default-order, $algorithm: "quick") { ... }
View source

Description

Sort function delaying to an algorithm-specific function depending on $algorithm

Parameters

parameter Name parameter Description parameter Type parameter Default value
$list

list to sort

List none
$order

order to deal with

List $default-order
$algorithm

algorithm to use

String "quick"

Returns

Sorted list

List

Requires

variables

default-order

$default-order: "!" "#" "$" "%" "&" "'" "(" ")" "*" "+" "," "-" "." "/" "[" "\\" "]" "^" "_" "{" "|" "}" "~"
  "0" "1" "2" "3" "4" "5" "6" "7" "8" "9"
  "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" "t" "u" "v" "w" "x" "y" "z" !default;
View source

Description

Default order used to determine which string comes first

Type

List