value part sorting for pointer hash