diff --git a/src/Webserver.API/Services/FileHandling/ApiDirectoryBuilder.cs b/src/Webserver.API/Services/FileHandling/ApiDirectoryBuilder.cs index 281ca8a..c8a872c 100644 --- a/src/Webserver.API/Services/FileHandling/ApiDirectoryBuilder.cs +++ b/src/Webserver.API/Services/FileHandling/ApiDirectoryBuilder.cs @@ -180,7 +180,7 @@ public List RecursiveGetResources(ApiFileResource resource, Api } } } - return resources; + return resources.OrderBy(el => el.Type).ThenBy(el => el.Size).ToList(); } } }