hack to sort the methods in traits, to get consistent results across JVM 6 and 7