table sorts correctly now