Then when he says, I say this, he explains in what sense he meant the foregoing. For someone who could believe that literally the least esteemed were to be chosen judges. But he excludes this, saying: I say this to your shame. As if to say: I did not say this as though it were to be done, but I said it to shame you, namely, with that confusion which brings grace and glory, as it says in Sirach (4:25): For the least esteemed in the Church should be chosen for judging, if no wise men were to be found among you, which would be shameful for you. That is why he continues: Can it be that there is no... man among you wise enough to decide between members of the brotherhood? Rather than do this, you should appoint the least esteemed in the Church to judge and to supply for the lack of wisdom, which, of course, is not wanting to you, as I said above (1:5): "In every way you were enriched in him with all speech and all knowledge."
Source: Commentary on 1 Corinthians