File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
xivModdingFramework/Cache Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public static class XivCache
27
27
private static GameInfo _gameInfo ;
28
28
private static DirectoryInfo _dbPath ;
29
29
private static DirectoryInfo _rootCachePath ;
30
- public static readonly Version CacheVersion = new Version ( "1.0.0.2 " ) ;
30
+ public static readonly Version CacheVersion = new Version ( "1.0.1.0 " ) ;
31
31
private const string dbFileName = "mod_cache.db" ;
32
32
private const string rootCacheFileName = "item_sets.db" ;
33
33
private const string creationScript = "CreateCacheDB.sql" ;
Original file line number Diff line number Diff line change @@ -52,7 +52,9 @@ public static async Task<List<IItemModel>> GetSharedImcSubsetItems(this IItemMod
52
52
var root = item . GetRoot ( ) ;
53
53
if ( root != null )
54
54
{
55
- return await root . GetAllItems ( item . ModelInfo . ImcSubsetID ) ;
55
+ var items = await root . GetAllItems ( item . ModelInfo . ImcSubsetID ) ;
56
+ items = items . OrderBy ( x => x . Name , new ItemNameComparer ( ) ) . ToList ( ) ;
57
+ return items ;
56
58
}
57
59
else
58
60
{
@@ -78,6 +80,7 @@ public static async Task<List<IItemModel>> GetSharedMaterialItems(this IItemMode
78
80
}
79
81
}
80
82
83
+ sameMaterialItems = sameMaterialItems . OrderBy ( x => x . Name , new ItemNameComparer ( ) ) . ToList ( ) ;
81
84
return sameMaterialItems ;
82
85
}
83
86
public static async Task < List < IItemModel > > GetSharedModelItems ( this IItemModel item )
@@ -90,6 +93,8 @@ public static async Task<List<IItemModel>> GetSharedModelItems(this IItemModel i
90
93
if ( items . Count == 0 ) {
91
94
items . Add ( ( IItemModel ) item . Clone ( ) ) ;
92
95
}
96
+
97
+ items = items . OrderBy ( x => x . Name , new ItemNameComparer ( ) ) . ToList ( ) ;
93
98
return items ;
94
99
}
95
100
@@ -878,6 +883,8 @@ public async Task<List<IItemModel>> GetAllItems(int imcSubset = -1)
878
883
items = items . Where ( x => x . ModelInfo . ImcSubsetID == imcSubset ) . ToList ( ) ;
879
884
}
880
885
886
+ items = items . OrderBy ( x => x . Name , new ItemNameComparer ( ) ) . ToList ( ) ;
887
+
881
888
return items ;
882
889
}
883
890
}
You can’t perform that action at this time.
0 commit comments