I want to display out of stock products at the end of the V1/products response.

I need a solution with a plugin (on Magento\Catalog\Api\ProductRepositoryInterface maybe ?)
I tried to override getList but can't achieve to make it work.

So far I tried to create a plugin on Magento\Catalog\Api\ProductRepositoryInterface to override the getList method but it doesn't work.

I don't know if this is a good method or I have to use an Observer or a plugin on another Class