sort attribute values most recent to least recent
This commit is contained in:
parent
7910696fa1
commit
c3776a0ba3
@ -165,6 +165,11 @@ public class MemoryOms : Oms
|
||||
if (_Attributes[source].ContainsKey(attribute))
|
||||
{
|
||||
List<AttributeValue> list = _Attributes[source][attribute];
|
||||
list.Sort(delegate (AttributeValue left, AttributeValue right)
|
||||
{
|
||||
return right.EffectiveDate.CompareTo(left.EffectiveDate);
|
||||
});
|
||||
|
||||
foreach (AttributeValue val in list)
|
||||
{
|
||||
if (val.EffectiveDate <= effectiveDate)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user