PRD-5251 - Auto-Sorting is not sorting first column of tablemodel

(cherry picked from commit 9969959)