From 1edd6152dc6f68d369f5748c532e9d07bcb36db1 Mon Sep 17 00:00:00 2001 From: kageru Date: Tue, 9 Jun 2020 20:50:23 +0200 Subject: [PATCH] Properly sort AUR results --- src/commands/aur.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/aur.rs b/src/commands/aur.rs index 43a582f..35a6f84 100644 --- a/src/commands/aur.rs +++ b/src/commands/aur.rs @@ -21,6 +21,7 @@ pub fn query_aur(ctx: Context, msg: Message, args: Vec<&str>) { .partial_cmp(&b.popularity) .unwrap_or(std::cmp::Ordering::Less) }); + response.results.reverse(); respond_with_results(msg.channel_id, &response.results, &ctx); }