Skip to content

Commit

Permalink
no sort algo
Browse files Browse the repository at this point in the history
  • Loading branch information
ahqsoftwares committed Oct 11, 2024
1 parent 05dab2a commit 8fe328a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,4 @@ edition = "2021"
[dependencies]
ahqstore-types = { version = "3" }
serde_yml = "0.0.12"
sort_algorithms = "0.3.5"
version-compare = "0.2.0"
2 changes: 1 addition & 1 deletion db/map/1.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{
2 changes: 1 addition & 1 deletion db/search/1.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[]
[
1 change: 0 additions & 1 deletion db/total

This file was deleted.

2 changes: 1 addition & 1 deletion src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ fn app_parse(letter: &str, author: &str, map: &mut Map) {

use sort_algorithms::cocktail_shaker_sort;

cocktail_shaker_sort(&mut versions, |x, y| {
versions.sort_by(|x, y| {
let (x, y) = (x.to_str().unwrap_or("0.0.0"), y.to_str().unwrap_or("0.0.0"));
let x = Version::from(x).unwrap();
let y = Version::from(y).unwrap();
Expand Down

0 comments on commit 8fe328a

Please sign in to comment.