Enable ordering in api