Made sortColumnsInit work on a local array.

The sortColumnsInit function would work on an array that's global to the
class, which would then be emptied before the sortData function consumed
the 'cols'.  This would result in an empty sort.