Skip to content

Commit

Permalink
Merge pull request #11 from lime/sort-versions
Browse files Browse the repository at this point in the history
Fix sorting of project versions
  • Loading branch information
flash-gordon authored Jun 6, 2023
2 parents 1822a09 + c365911 commit 2134e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/add-docsite
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Dir.chdir(website_path) do
else
project_versions = project_entry["versions"]
project_versions << version_entry
project_versions.sort! { |entry| entry["value"].to_f }
project_versions.sort_by! { |entry| entry["value"].split(".").map(&:to_i) }.reverse!

File.write(projects_yaml, YAML.dump(project_data))

Expand Down

0 comments on commit 2134e4f

Please sign in to comment.