I want to sort the search results and get the latest records

I want to sort the search results and get the latest records

I want to search the set items of the quote, get a list of matching records, and get the latest record ID among them. But the script I wrote does not work well. Please tell me how to do it.
  1. results = zoho.crm.searchRecords("Quotes","(field15:equals:aaaaa)");
  2. for each record in results
  3. {
  4. create_time = record.get("Created_Time");
  5. create_time.sort(true);
  6. info record;
  7. }
  8. info record;