A just, fast ⚡ and efficient sorting algorithm where the winners are fair and kind
Add this to your Cargo.toml:
[dependencies]
capitalist-sort = "0.1.0"Or install via cargo:
cargo add capitalist-sortuse capitalist_sort::capitalist_sort;
fn main() {
let mut assets = vec![-1, 5, 3, 2, 1];
let democracy = 0.8;
capitalist_sort(&mut assets, democracy);
println!("Sorted Assets: {:?}", assets);
}capitalist-sort Copyright (C) 2026 Luiz Eduardo Amaral luizamaral306@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.