While doing some performance analysis I found that the SQLServer2012LimitHandler.hasOrderBy() method had excessive number of toLowerCase() and substring() executions.