Hello, today I have a problem in my project, I would like to check if 2 arrays of SoftwareDependency class have the same content, but I have this error:
if nextDependenciesArray.sort == currentDependenciesArray.sort
inextricableDependency = true
inextricableArrayTest = currentDependenciesArray
break
end
zohran master ~ ISM 1 crystal Main.cr -so -i libstdc++-pass1 gcc-pass1
Showing last frame. Use --error-trace for full trace.
In /usr/lib64/crystal/slice/sort.cr:199:12
199 | v = v1 <=> v2
^--
Error: undefined method '<=>' for ISM::SoftwareDependency
All array are Array(ISM::SoftwareDependency).
And Is it possible to perform a uniq! in an array like that as well ?