SONAR-5191 fix some usage of java list.sort in ruby code