Adding sorting of results, and increased maximum response length to 1,000 records