sort works manually but not from script
My script finds some records based on dates. After finding the records I try to sort the records by date. The records end up not getting sorted. I can manually sort them and it works fine. Seems like such a simple step. Any suggestions to try?