API, sort