Skip to content

Commit 84fa46e

Browse files
authored
Fix #122: use UtcTimeStamp to sort MongoDb search results (#125)
1 parent fce2d20 commit 84fa46e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Serilog.Ui.MongoDbProvider/MongoDbDataProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ await _collection.Indexes.CreateOneAsync(
6161
.Find(builder)
6262
.Skip(count * page)
6363
.Limit(count)
64-
.SortByDescending(entry => entry.Timestamp)
64+
.SortByDescending(entry => entry.UtcTimeStamp)
6565
.ToListAsync();
6666

6767
var index = 1;
@@ -117,4 +117,4 @@ private void GenerateWhereClause(
117117
}
118118
}
119119
}
120-
}
120+
}

src/Serilog.Ui.MongoDbProvider/Serilog.Ui.MongoDbProvider.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
6-
<Version>2.3.1</Version>
6+
<Version>2.3.2</Version>
77
</PropertyGroup>
88

99
<ItemGroup>
@@ -15,4 +15,4 @@
1515
<ItemGroup>
1616
<ProjectReference Include="..\Serilog.Ui.Core\Serilog.Ui.Core.csproj" PrivateAssets="all" />
1717
</ItemGroup>
18-
</Project>
18+
</Project>

0 commit comments

Comments
 (0)