qsort([]) -> []; qsort([H|T]) -> Smaller = [N || N <- T, N =< H], Bigger = [N || N <- T, N > H], qsort(Smaller) ++ [H] ++ qsort(Bigger).