Adding Products To Orders

Hello All,

We have noticed when we create an order and use the quick search bar, it tends to show the disabled products first. The disabled products tend to be old/out of stock.

The only thing I can think is that it shows the products in order of Product ID (lowest at the top, highest at the bottom), as there doesn't seem to be any other pattern.

Is this correct, and is there a way I can rearrange the list to show active products first?



Anyone know how to do this please?


To exclude disabled items, please add after the following line

'area'           => 'A',

this code

'status'           => ['A'],