From fdcffc86146a8ec2121e01fe95420648ac0fbd66 Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Sat, 5 Feb 2011 19:40:20 +0000 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) 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 { /// /// public int CompareTo (object obj) { - return Name.CompareTo((obj as SubtitleTypeInfo).Name); + return type.ToString().CompareTo((obj as SubtitleTypeInfo).Type.ToString()); } /* Internal members */ -- 2.11.4.GIT