Add order-by and limit support for selects.