Fix progress usage in sort job
Move column stats to core, fix stats with int column
add unit test