Changed api_results from dict to list of tuples, fixes sorting error