Fix equals() implementation, since raw data is unordered