class_docstr: Test shared Alert class.
docstr: Alert Class - Alerts Are Sorted By Creation
docstr_tok: ["Alert","Class","-","Alerts","Are","Sorted","By","Creation"]
code: def test_ordering(self):
      """Alert Class - Alerts Are Sorted By Creation"""
      alerts = [self._basic_alert() for _ in range(5)]
      assert_equal(
          alerts,
          sorted(
              [alerts[0], alerts[3], alerts[1], alerts[4], alerts[2]]
          ),
      )
  
imports: import copy
  from datetime import datetime, timedelta
  import json
  from nose.tools import assert_equal, assert_false, assert_is_instance, assert_not_in, assert_raises, assert_true
  from streamalert.shared.alert import Alert, AlertCreationError
label_desc: Use image node_id 5 for calling the TestAlert obj's underlying member method code with example usage: obj.test_ordering() without return types