adding result ordering to the API, more changes. needs more testing