added support for order by on selects when creating new resources