order by created date

This commit is contained in:
David Meincke
2023-05-30 10:30:25 +02:00
parent ae32af3c9f
commit 5a28cdb027
+1 -1
View File
@@ -46,7 +46,7 @@ namespace CodeEditorApi.Helpers
res.Add(GetSession(folder)); res.Add(GetSession(folder));
} }
return res.ToArray(); return res.OrderByDescending(x => x.Timestamp).ToArray();
} }
public static SessionData[] Get(Guid sessionId) public static SessionData[] Get(Guid sessionId)