This is a method that allows to sort any array. It has two versions:
- Sorts the array in ascending order.
- Sorts the array using a block provided when the method is called.
- Ruby
- Tested on irb.
To get a local copy up and running follow these simple example steps.
Ruby 2.7.0
Install ruby following this guide: Install
Clone the repository from Github: Github
- Open your terminal and
cdto the directory you cloned. - Type
ruby bubble_sort.rbfor the first version andruby bubble_sort_by.rbfor the second version. - Add the method to your personal library of methods and try it with any array of your choice.
👤 João Paulo Dias França
- GitHub: @jpdf00
- Twitter: @jpdf00
- LinkedIn: @João Paulo Dias França
👤 Alicia Paz Rojas
- GitHub: @aliciapaz
- Twitter: @_alicia_paz
- LinkedIn: Alicia Rojas
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page
Give a ⭐️ if you like this project!
- The Odin Project
This project is MIT licensed.