Fix to issue #1402
Merge pull request #1410 from Gerb11/master

Closes #1402: UI Alignment error when sorting