-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathVersionOrder.cs
More file actions
36 lines (34 loc) · 862 Bytes
/
VersionOrder.cs
File metadata and controls
36 lines (34 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace FF13Randomizer
{
public class VersionOrder
{
private static List<string> VersionHistory = new List<string>() {
"1.8.0.Pre",
"1.8.0.Pre-2",
"1.8.0.Pre-3",
"1.8.0",
"1.8.1",
"1.8.2",
"1.8.3",
"1.8.4",
"1.9.0.Pre",
"1.9.0.Pre-2",
"1.9.0.Pre-3",
"1.9.0.Pre-4",
"1.9.0.Pre-5",
"1.9.0.Pre-6",
"1.9.0.Pre-7",
"1.9.0.Pre-8",
FormMain.Version
};
public static int Compare(string a, string b)
{
return VersionHistory.IndexOf(a).CompareTo(VersionHistory.IndexOf(b));
}
}
}