Skip to content

Commit

Permalink
Fix TraverseSort to support properties declared by interfaces (#2750)
Browse files Browse the repository at this point in the history
  • Loading branch information
daawaan4U authored Jan 12, 2022
1 parent cb33c79 commit 9c9d136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Realm/Realm/Linq/RealmResultsVisitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private IntPtr[] TraverseSort(MemberExpression expression)

while (expression != null)
{
var type = expression.Member.DeclaringType;
var type = expression.Expression.Type;
var typeName = type.GetMappedOrOriginalName();
if (!_realm.Metadata.TryGetValue(typeName, out var metadata))
{
Expand Down

0 comments on commit 9c9d136

Please sign in to comment.