code-editor-api

order by created date

5/30/2023 10:30:25 AM

Details

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)