Print Table: sort cloumns by idx after removing empty cols