Remove column numfacture and add option

Remove column numfacture and add options for rewrite sorting option if
is  option enable
refacto if