Skip to content

luxedo/capitalist-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

capitalist-sort

A just, fast ⚡ and efficient sorting algorithm where the winners are fair and kind

Installation

Add this to your Cargo.toml:

[dependencies]
capitalist-sort = "0.1.0"

Or install via cargo:

cargo add capitalist-sort

Usage

use 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);
}

License

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/.

About

A just, fast ⚡ and efficient sorting algorithm where the winners are fair and kind

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages