From 5a28cdb02757bfd2a09130c58aae83ce36377593 Mon Sep 17 00:00:00 2001 From: David Meincke Date: Tue, 30 May 2023 10:30:25 +0200 Subject: [PATCH] order by created date --- Application/Helpers/SessionFiles.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/Helpers/SessionFiles.cs b/Application/Helpers/SessionFiles.cs index 70fe251..ec6cb1c 100644 --- a/Application/Helpers/SessionFiles.cs +++ b/Application/Helpers/SessionFiles.cs @@ -46,7 +46,7 @@ namespace CodeEditorApi.Helpers res.Add(GetSession(folder)); } - return res.ToArray(); + return res.OrderByDescending(x => x.Timestamp).ToArray(); } public static SessionData[] Get(Guid sessionId)