From fe829cf9bb58f73c1c972648024c3c2510d69013 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Sun, 26 Nov 2017 10:07:45 +0700 Subject: [PATCH] fixed #1875 --- .../Services/Database/Repositories/Impl/QuoteRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NadekoBot.Core/Services/Database/Repositories/Impl/QuoteRepository.cs b/NadekoBot.Core/Services/Database/Repositories/Impl/QuoteRepository.cs index 72630a5e..599858ef 100644 --- a/NadekoBot.Core/Services/Database/Repositories/Impl/QuoteRepository.cs +++ b/NadekoBot.Core/Services/Database/Repositories/Impl/QuoteRepository.cs @@ -22,9 +22,9 @@ namespace NadekoBot.Core.Services.Database.Repositories.Impl { var q = _set.Where(x => x.GuildId == guildId); if (order == OrderType.Keyword) - q.OrderBy(x => x.Keyword); + q = q.OrderBy(x => x.Keyword); else - q.OrderBy(x => x.Id); + q = q.OrderBy(x => x.Id); return q.Skip(15 * page).Take(15).ToArray(); }