From b7b4a7be34f3d31096a7f5af18aa9d72523ce290 Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Mon, 11 Mar 2024 21:07:23 -0400 Subject: [PATCH] refactor(app-list): no need to check name when sorting --- cosmic-app-list/src/app.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cosmic-app-list/src/app.rs b/cosmic-app-list/src/app.rs index a9dab6d6..a36e88ee 100755 --- a/cosmic-app-list/src/app.rs +++ b/cosmic-app-list/src/app.rs @@ -78,12 +78,12 @@ pub fn load_applications_for_app_ids_sorted<'a, 'b>( ret.sort_by(|a, b| { app_ids .clone() - .position(|id| id == a.id || a.name.to_lowercase() == id.to_lowercase()) + .position(|id| id == a.id) .unwrap_or(usize::MAX) .cmp( &app_ids .clone() - .position(|id| id == b.id || b.name.to_lowercase() == id.to_lowercase()) + .position(|id| id == b.id) .unwrap_or(usize::MAX), ) });