added sort for api nav