Adding sort to ES query returns inaccurate results?

It depends on the mapping for the field ProcessId.
What is it?