Skip to content

Commit 4e50eb7

Browse files
author
tekgator
committed
Mojang Bedrock versions are now sorted newest to oldest
1 parent 5053b45 commit 4e50eb7

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
55

6+
### Fixed
7+
- Mojang Bedrock versions are now sorted newest to oldest
8+
69

710
## [1.4.4] - 2023-06-03
811

MinecraftJars.Plugin/MinecraftJars.Plugin.Mojang/MojangVersionFactory.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ where string.IsNullOrWhiteSpace(options.Version) || version.Equals(options.Versi
9090
where options.IncludeSnapshotBuilds || !isPreview
9191
let url = match.Value
9292
let platform = match.Groups["platform"].Value.Equals("linux", StringComparison.OrdinalIgnoreCase) ? Os.Linux : Os.Windows
93+
orderby version descending
9394
select new MojangVersion(
9495
Project: project,
9596
Version: version,
@@ -98,7 +99,7 @@ where options.IncludeSnapshotBuilds || !isPreview
9899
{
99100
DetailUrl = url
100101
}).ToList();
101-
102+
102103
return options.MaxRecords.HasValue
103104
? versions.Take(options.MaxRecords.Value).ToList()
104105
: versions;

0 commit comments

Comments
 (0)