sort msg by descending order of stamp in client side