# Ordering product by stock status

### Displaying in stock products first

* On the **General Options -> Ordering** (step 1. & 2.) panel, select the **Custom Field Ascending** as the Primary ordering (step 3.).
* As the custom field name enter **\_*****stock\_status*** (step 4.)
* ..and the custom field type should be **string or date** (step 5.)

![](https://1744076133-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M9rmHbZfTKVQ7YzbIZL%2Fuploads%2FyJe61RsO8M8Mf5MLGLfb%2Fimage.png?alt=media\&token=28b3c021-e499-49cb-ba25-44562a811eca)
