SONAR-4301 Fix issue when sort and asc are null