diff --git a/WinAlfred/MainWindow.xaml.cs b/WinAlfred/MainWindow.xaml.cs index 6a627110a3..908316d39b 100644 --- a/WinAlfred/MainWindow.xaml.cs +++ b/WinAlfred/MainWindow.xaml.cs @@ -232,13 +232,14 @@ namespace WinAlfred progressBar.Dispatcher.Invoke(new Action(StopProgress)); if (list.Count > 0) { + //todo:this used be opened to users, it's they choise use it or not in thier workflows list.ForEach(o => { o.Score += selectedRecords.GetSelectedCount(o); }); resultCtrl.Dispatcher.Invoke(new Action(() => { - List l = list.Where(o => o.OriginQuery != null && o.OriginQuery.RawQuery == tbQuery.Text).OrderByDescending(o => o.Score).ToList(); + List l = list.Where(o => o.OriginQuery != null && o.OriginQuery.RawQuery == tbQuery.Text).ToList(); resultCtrl.AddResults(l); })); } diff --git a/WinAlfred/ResultPanel.xaml.cs b/WinAlfred/ResultPanel.xaml.cs index 26aa8f9598..0551a09425 100644 --- a/WinAlfred/ResultPanel.xaml.cs +++ b/WinAlfred/ResultPanel.xaml.cs @@ -74,7 +74,14 @@ namespace WinAlfred { if ((currentScore >= next.Result.Score && currentScore <= prev.Result.Score)) { - location = index; + if (currentScore == next.Result.Score) + { + location = index + 1; + } + else + { + location = index; + } } } }