Fix/4.0.x/ecms 6231

Fix description: use new method compareLong to compare as a number, instead of a string, when property type is kind of Long or Double.