fixed bug where columns wouldn't sort correctly