Fixed TableWidget append / sort issues
cleanup
Fix TableWidget sorting behavior when appending and editing data

Merge branch 'tablewidget_fix' into develop