cbor: split Sort into sort.ml
Move Sort out of cbor.ml into its own sort.ml at the top level. Sort is
a public type labelling error contexts and Loc.Path frames; inlining it
in cbor.ml hid that role.
Replace Sort.of_cbor with Value.sort, following json's convention
(Value converts into Sort, not the other way). Sort stays dependency-
free.