File tree Expand file tree Collapse file tree
MinecraftJars.Plugin/MinecraftJars.Plugin.Mojang Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments