@@ -122,9 +122,7 @@ public virtual JToken Compact(Context activeCtx, string activeProperty, JToken e
122122 JObject result = new JObject ( ) ;
123123 // 7)
124124 JArray keys = new JArray ( element . GetKeys ( ) ) ;
125-
126125 keys . SortInPlace ( ) ;
127-
128126 foreach ( string expandedProperty in keys )
129127 {
130128 JToken expandedValue = elem [ expandedProperty ] ;
@@ -492,9 +490,7 @@ public virtual JToken Expand(Context activeCtx, string activeProperty, JToken el
492490 JObject result = new JObject ( ) ;
493491 // 7)
494492 JArray keys = new JArray ( element . GetKeys ( ) ) ;
495-
496493 keys . SortInPlace ( ) ;
497-
498494 foreach ( string key in keys )
499495 {
500496 JToken value = elem [ key ] ;
@@ -811,9 +807,7 @@ public virtual JToken Expand(Context activeCtx, string activeProperty, JToken el
811807 expandedValue = new JArray ( ) ;
812808 // 7.6.2)
813809 JArray indexKeys = new JArray ( value . GetKeys ( ) ) ;
814-
815810 indexKeys . SortInPlace ( ) ;
816-
817811 foreach ( string index in indexKeys )
818812 {
819813 JToken indexValue = ( ( JObject ) value ) [ index ] ;
@@ -1295,9 +1289,7 @@ private void GenerateNodeMap(JToken element, JObject nodeMap,
12951289 }
12961290 // 6.11)
12971291 JArray keys = new JArray ( element . GetKeys ( ) ) ;
1298-
12991292 keys . SortInPlace ( ) ;
1300-
13011293 foreach ( string property_1 in keys )
13021294 {
13031295 var eachProperty_1 = property_1 ;
@@ -1443,9 +1435,7 @@ private void Frame(JsonLdApi.FramingContext state, JObject nodes
14431435 bool explicitOn = GetFrameFlag ( frame , "@explicit" , state . @explicit ) ;
14441436 // add matches to output
14451437 JArray ids = new JArray ( matches . GetKeys ( ) ) ;
1446-
14471438 ids . SortInPlace ( ) ;
1448-
14491439 foreach ( string id in ids )
14501440 {
14511441 if ( property == null )
@@ -1508,9 +1498,7 @@ private void Frame(JsonLdApi.FramingContext state, JObject nodes
15081498 // iterate over subject properties
15091499 JObject element = ( JObject ) matches [ id ] ;
15101500 JArray props = new JArray ( element . GetKeys ( ) ) ;
1511-
15121501 props . SortInPlace ( ) ;
1513-
15141502 foreach ( string prop in props )
15151503 {
15161504 // copy keywords to output
@@ -1587,9 +1575,7 @@ private void Frame(JsonLdApi.FramingContext state, JObject nodes
15871575 }
15881576 // handle defaults
15891577 props = new JArray ( frame . GetKeys ( ) ) ;
1590-
15911578 props . SortInPlace ( ) ;
1592-
15931579 foreach ( string prop_1 in props )
15941580 {
15951581 // skip keywords
0 commit comments