class_docstr: Test cases for the ordering of sets of statements.
class_docstr_tok: ["Test","cases","for","the","ordering","of","sets","of","statements","."]
code: def test_order_by_created_at(self):
      from datetime import datetime, timedelta
  
      today = datetime.now()
      yesterday = datetime.now() - timedelta(days=1)
  
      statement_a = Statement(
          text="A is the first letter of the alphabet.",
          created_at=yesterday,
      )
      statement_b = Statement(
          text="B is the second letter of the alphabet.",
          created_at=today,
      )
  
      self.adapter.update(statement_b)
      self.adapter.update(statement_a)
  
      results = list(self.adapter.filter(order_by=["created_at"]))
  
      self.assertEqual(len(results), 2)
      self.assertEqual(statement_a.text, results[0].text)
      self.assertEqual(statement_b.text, results[1].text)
  
imports: from unittest import TestCase
  from chatterbot.conversation import Statement
  from chatterbot.storage.sql_storage import SQLStorageAdapter
label_desc: Use image node_id 2 for calling the SQLOrderingTests obj's underlying member method code with example usage: obj.test_order_by_created_at() without return types