Fix sorting from API v3