Fix bug JIRA-923

Fix column sort issue in UI for JIRA-923. https://spark-project.atlassian.net/browse/SPARK-923