launcher: Invert score sort

This commit is contained in:
Kenny Levinsen
2019-08-06 09:51:14 +02:00
parent e63a28abb7
commit b72c8e9cd9
+2 -2
View File
@@ -130,9 +130,9 @@ impl ModuleImpl for Launcher {
.collect::<Vec<(i64, String)>>(); .collect::<Vec<(i64, String)>>();
m.sort_by(|(x1, y1), (x2, y2)| { m.sort_by(|(x1, y1), (x2, y2)| {
if x1 < x2 { if x1 > x2 {
Ordering::Less Ordering::Less
} else if x1 > x2 { } else if x1 < x2 {
Ordering::Greater Ordering::Greater
} else if y1.len() < y2.len() { } else if y1.len() < y2.len() {
Ordering::Less Ordering::Less