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(); }