[gnome-subtitles] Sort the subtitles by SubtitleType instead of name, so that SubRip comes before Sub Station Alpha fo



commit fdcffc86146a8ec2121e01fe95420648ac0fbd66
Author: Pedro Castro <mail pedrocastro org>
Date:   Sat Feb 5 19:40:20 2011 +0000

    Sort the subtitles by SubtitleType instead of name, so that SubRip comes before Sub Station Alpha for example

 src/SubLib/Core/Domain/SubtitleTypeInfo.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/SubLib/Core/Domain/SubtitleTypeInfo.cs b/src/SubLib/Core/Domain/SubtitleTypeInfo.cs
index ae44adb..434d51b 100644
--- a/src/SubLib/Core/Domain/SubtitleTypeInfo.cs
+++ b/src/SubLib/Core/Domain/SubtitleTypeInfo.cs
@@ -97,7 +97,7 @@ public class SubtitleTypeInfo : IComparable {
 	///	</list>
 	///	</returns>
 	public int CompareTo (object obj) {
-		return Name.CompareTo((obj as SubtitleTypeInfo).Name);
+		return type.ToString().CompareTo((obj as SubtitleTypeInfo).Type.ToString());
 	}
 
 	/* Internal members */



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