From fcb438363fb6c0406e8b00ee62975b1e7640d812 Mon Sep 17 00:00:00 2001 From: Ludwig Date: Mon, 28 Jan 2019 01:17:43 -0500 Subject: [PATCH] sort persistentEnemies --- lib/APIs/worldstate.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/APIs/worldstate.dart b/lib/APIs/worldstate.dart index 93273b41a..4e06c7d60 100644 --- a/lib/APIs/worldstate.dart +++ b/lib/APIs/worldstate.dart @@ -47,6 +47,8 @@ class WorldstateAPI { state.invasions.retainWhere( (invasion) => invasion.completion < 100 && invasion.completed == false); + state.persistentEnemies.sort((a, b) => a.agentType.compareTo(b.agentType)); + state.syndicates.retainWhere((s) => s.syndicate.contains(RegExp('(Ostrons)|(Solaris United)')) == true);