Dynamic salt fixes, salt sort and enhacements to raw2dyna