Prevent sorting if column is not sortable (#13334)

Change-Id: I8e084048232a017a57ef5677cbb4ea6d29b89f18