Adding some intelligence to result types ordering