[banshee/1.5.1-fixes: 9/56] [BansheeQuery] When sorting by score also sort by playcount (bgo#598431)



commit fd664f1be7d93fd3640223b341acb82dd816ddc7
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date:   Fri Oct 16 11:03:56 2009 +1100

    [BansheeQuery] When sorting by score also sort by playcount (bgo#598431)

 .../Banshee.Services/Banshee.Query/BansheeQuery.cs |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Query/BansheeQuery.cs b/src/Core/Banshee.Services/Banshee.Query/BansheeQuery.cs
index 9ef535b..87abe16 100644
--- a/src/Core/Banshee.Services/Banshee.Query/BansheeQuery.cs
+++ b/src/Core/Banshee.Services/Banshee.Query/BansheeQuery.cs
@@ -432,6 +432,12 @@ namespace Banshee.Query
                     );
                     break;
 
+                case "score":
+                    sort_query = String.Format (@"
+                        CoreTracks.Score {0},
+                        CoreTracks.Playcount {0}, {1}", ascDesc, default_sort);
+                    break;
+
                 case "year":
                 case "bitrate":
                 case "bpm":
@@ -439,7 +445,6 @@ namespace Banshee.Query
                 case "disccount":
                 case "duration":
                 case "rating":
-                case "score":
                 case "playcount":
                 case "skipcount":
                 case "filesize":



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]