From 1bb326dcf18d56b0b1c1de0f5692461f8d68728a Mon Sep 17 00:00:00 2001 From: JonKing93 Date: Sun, 4 Jul 2021 06:39:56 -0700 Subject: [PATCH] Fixed sorting bug in ensemble.useVariables --- @ensemble/useVariables.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/@ensemble/useVariables.m b/@ensemble/useVariables.m index efafcfb3..4a23fb16 100644 --- a/@ensemble/useVariables.m +++ b/@ensemble/useVariables.m @@ -23,7 +23,7 @@ else obj.stateVector.checkVariables(varNames); varNames = string(varNames); - varNames = unique(varNames(:)); + varNames = unique(varNames(:), 'stable'); end obj.variables = varNames;