sort list of APIs