some sortings and heap raw