diff --git a/documentation/en/Where can I report bugs.md b/documentation/en/1. Info.md similarity index 100% rename from documentation/en/Where can I report bugs.md rename to documentation/en/1. Info.md diff --git a/documentation/en/How can I make my server available to other players.md b/documentation/en/2. PortForwarding.md similarity index 100% rename from documentation/en/How can I make my server available to other players.md rename to documentation/en/2. PortForwarding.md diff --git a/gui/lib/src/page/implementation/info_page.dart b/gui/lib/src/page/implementation/info_page.dart index 2e82647..9e19fa4 100644 --- a/gui/lib/src/page/implementation/info_page.dart +++ b/gui/lib/src/page/implementation/info_page.dart @@ -53,6 +53,11 @@ class _InfoPageState extends RebootPageState { Future> _initQuery() async { var response = await http.get(Uri.parse("https://api.github.com/repos/Auties00/reboot_launcher/contents/documentation/$currentLocale")); List results = jsonDecode(response.body) + .sort((first, second) { + var firstIndex = int.parse(first["name"][0]); + var secondIndex = int.parse(second["name"][0]); + return firstIndex > secondIndex ? 1 : firstIndex == secondIndex ? 0 : -1; + }) .map((entry) => entry["download_url"] as String) .toList(); return _infoController.links = results;