messier16 / neo4j-nested-values

Graphs for Everyone

Home Page:http://neo4j.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comparison between MapValue and other Virtual values.

fferegrino opened this issue · comments

In the class AnyValueComparatorTest,

This is creating an issue since maps now inherit from Value, so the method shouldOrderValuesCorrectly is failing. I do not get the concept of ordering values and why map should be the last element on the list...

Seems like MapValue was expected (when it inherited from VirtualValue) to be smaller than any other Value... just because. The comparison is made in AnyValueComparator.java.