Fix #1160: sort values on search failing round trip serialization