sort the pixels of images *.yuv, which are encoded as YCbCr