From 473359c64599e7b67053a18dae4cc264cb3c7bd5 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Tue, 21 Aug 2018 20:44:39 -0500 Subject: [PATCH] Sort journal by appearance time (#21) --- src/api/MyPrayerJournal.Api/Data.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/MyPrayerJournal.Api/Data.fs b/src/api/MyPrayerJournal.Api/Data.fs index 3a2d948..82dc684 100644 --- a/src/api/MyPrayerJournal.Api/Data.fs +++ b/src/api/MyPrayerJournal.Api/Data.fs @@ -242,7 +242,7 @@ type AppDbContext (opts : DbContextOptions) = member this.JournalByUserId userId : JournalRequest seq = upcast this.Journal .Where(fun r -> r.userId = userId && r.lastStatus <> "Answered") - .OrderBy(fun r -> r.asOf) + .OrderBy(fun r -> r.showAfter) /// Retrieve a request by its ID and user ID member this.TryRequestById reqId userId =