sorting of shared memory content