This commit is contained in:
Master Kwoth 2017-11-26 10:07:45 +07:00
parent e2ddc3c1d4
commit fe829cf9bb

View File

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