Postgresql пользовательский заказ по
ORDER BY array_position(array['Nails','Bolts','Washers','Screws','Staples','Nuts'], s.type)
serhii_rb
ORDER BY array_position(array['Nails','Bolts','Washers','Screws','Staples','Nuts'], s.type)