convert_toOrdinal function

Method to convert columns to ordinal.